Bug #1047
openWTextEdit. NullPointerException in 2nd rendering phase
0%
Description
Hello it is quite difficult to debug when errors are thrown in the second rendering phase.
I had the problem with WTextEdit. Apparently setText() has a preconditions: text must not be null. This is however not document and not checked. Could you add the checking on set?
Best regards,
Thim.
Updated by Thim Anneessens about 13 years ago
Here is the stack trace that I had:
java.lang.NullPointerException
at eu.webtoolkit.jwt.StringUtils.sanitizeUnicode(StringUtils.java:297)
at eu.webtoolkit.jwt.WWebWidget.escapeText(WWebWidget.java:811)
at eu.webtoolkit.jwt.WWebWidget.escapeText(WWebWidget.java:823)
at eu.webtoolkit.jwt.WTextArea.updateDom(WTextArea.java:244)
at eu.webtoolkit.jwt.WTextEdit.updateDom(WTextEdit.java:250)
at eu.webtoolkit.jwt.WWebWidget.createDomElement(WWebWidget.java:719)
at eu.webtoolkit.jwt.WWebWidget.createActualElement(WWebWidget.java:755)
at eu.webtoolkit.jwt.WWidget.createSDomElement(WWidget.java:1306)
....
Updated by Pieter Libin about 13 years ago
- Status changed from New to InProgress
- Assignee set to Pieter Libin
Updated by Pieter Libin about 13 years ago
We will check for each String argument that is passed to the public API that it is not null.