Exception during Client.processUpdates(): Result of expression 'this._node' [null] is not an object. Red Screen

This is a really nasty bug with a resulting Red Screen and took me a while to track it down

I get this if I create a label but never set the text - so the text is null.

aschild's picture

Opening a issue in the

Opening a issue in the bugtraker is good idea, so it does no slip trough.

http://bugs.nextapp.com/mantis

André

tliebeck's picture

Can you give me any more

Can you give me any more info on the conditions that cause this? Server-side or client-side? What other properties are you setting on the label? What version of Echo (SVN trunk/b7?)

more info...

ok - Server side code looks like this

Label label = new Label();
//label.setText("0");
label.setLayoutData(new RowLayoutData());
row.add(label);

The line
label.setText("0");
needs to be included i.e. set the text to any valid string otherwise the js exception occurs.
the label is being rendered as part of a row that is part of a split-pane

I just tried out the code using the b7 from echo3go and it still persists. I haven't tried to reproduce this in a simpler app but I think it should be easy to reproduce.

I can't reproduce this with

I can't reproduce this with above code. Can you post your complete Label configuration? From what I've seen in the code, this could only happen when only a tooltip text is set.

Niels

tliebeck's picture

The tooltip bug is (just)

The tooltip bug is (just) fixed in SVN 2132.

yes its the same problem - tooltip set / text not set

Yes - the tooltip text was being set but not the text I didn't make the connection between it and the text not being set -tricky!
I didn't include the tooltip being set in my earlier example code as I wanted to make it as simple as possible but this had the effect of not producing the bug :(

tliebeck's picture

No worries, just glad that

No worries, just glad that was found and fixed :D