Hi
We are getting quite a few automated reports of an error being thrown in GoJS (1.6.11). I’ve not been able to reproduce it but wondered if you’d seen anything similar that may give me a clue as to what’s going on?
The stack trace looks like this
TypeError: Cannot read property ‘ud’ of null at brt (https://businessoptixhosted.com/Author/bundles/edit?v=MBPmBFbJqMUedbGykRCBMIKty-TgAddh-QxgwQc_DLo1:1:82988) at fkt (https://businessoptixhosted.com/Author/bundles/edit?v=MBPmBFbJqMUedbGykRCBMIKty-TgAddh-QxgwQc_DLo1:1:131284) at pp (https://businessoptixhosted.com/Author/bundles/edit?v=MBPmBFbJqMUedbGykRCBMIKty-TgAddh-QxgwQc_DLo1:1:33586) at at.doMouseUp (https://businessoptixhosted.com/Author/bundles/edit?v=MBPmBFbJqMUedbGykRCBMIKty-TgAddh-QxgwQc_DLo1:1:354296) at i.doMouseUp (https://businessoptixhosted.com/Author/bundles/edit?v=MBPmBFbJqMUedbGykRCBMIKty-TgAddh-QxgwQc_DLo1:1:416479) at r.jp (https://businessoptixhosted.com/Author/bundles/edit?v=MBPmBFbJqMUedbGykRCBMIKty-TgAddh-QxgwQc_DLo1:1:91075)
We don’t hook into the mouseUp event so I assume this is all internal to GoJS
The code for the brt function looks like this
function brt(n, i, r, u) {
var f, e, o;
if (null === n.ud && (n.ud = new oa),
n.ud.ht || n.ud.group !== r || n.ud.eA !== u) {
if (null === r)
for (i = n.lj ? dct(n) : n.Vd.copy(),
i.Nf(100, 100),
n.ud.initialize(i),
i = t.Yf(),
f = n.xg; f.next(); )
e = f.value,
o = e.layer,
null !== o && o.visible && !o.Fc && krt(n, e, u, i);
else
for (r.W.J() || r.of(),
i = r.W.copy(),
i.Nf(20, 20),
n.ud.initialize(i),
i = t.Yf(),
f = r.Hc; f.next(); )
e = f.value,
e instanceof c && krt(n, e, u, i);
t.fc(i);
n.ud.group = r;
n.ud.eA = u;
n.ud.ht = !1
} else
i && ng(n.ud);
return n.ud
}
So I assume n is null when the function is called. If you could give me an idea of what this function does then I may be able to figure out if we are doing something incorrectly