We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2dfafb commit 4c43478Copy full SHA for 4c43478
scripts/JSRootPainter.js
@@ -8337,7 +8337,7 @@
8337
url = this.itemFullName(item, top);
8338
var func = null;
8339
if ('_kind' in item) draw_handle = JSROOT.getDrawHandle(item._kind);
8340
-
+
8341
8342
if ('_doing_expand' in item) {
8343
h_get = true;
@@ -9160,7 +9160,7 @@
9160
* Draw object in specified HTML element with given draw options */
9161
9162
JSROOT.draw = function(divid, obj, opt) {
9163
- if (typeof obj != 'object') return null;
+ if ((obj==null) || (typeof obj != 'object')) return null;
9164
9165
var handle = null;
9166
if ('_typename' in obj) handle = JSROOT.getDrawHandle("ROOT." + obj['_typename'], opt);
0 commit comments