Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 6968

Exception in GoJS 1.5.22 after inline edit and undo

$
0
0

@Doogal wrote:

Hi

We are experiencing an exception being thrown in GoJS. I suspect this won't normally be seen by an end user but we capture all exceptions and log them so we are seeing it quite frequently. I can now reproduce it in Chrome when I edit the name of an object via the inline editor and then perform an undo.

The error message is Cannot read property 'Xu' of null and occurs at line 622 of the debug source in the following bit of code

a.addEventListener("input",function(){var a=this.textEditingTool,c=a.PC;c.text=this.value;var d=this.jJ;Yh(c,a.Gf.Xu,Infinity);this.style.width=20+c.Ja.width*d+"px";this.style.height=10+c.Ja.height*d+"px";this.rows=c.gI},!1);

There is no call stack, presumably because this gets called in response to an event somewhere, so there's nothing I can directly change in my code to fix it.

I assume a.Gf is null when this is being called hence the error. I guess a fix would just be a check for null, but if that isn't possible, has this been seen before and any ideas as to what is causing it (i.e something in my code?).

Posts: 7

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 6968

Trending Articles