Project

General

Profile

Actions

Bug #1047

open
TA PL

WTextEdit. NullPointerException in 2nd rendering phase

Bug #1047: WTextEdit. NullPointerException in 2nd rendering phase

Added by Thim Anneessens almost 15 years ago. Updated almost 15 years ago.

Status:
InProgress
Priority:
Low
Assignee:
Pieter Libin
Category:
-
Target version:
-
Start date:
11/03/2011
Due date:
% Done:

0%

Estimated time:
0:30 h

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.

TA Updated by Thim Anneessens almost 15 years ago Actions #1

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)

....

PL Updated by Pieter Libin almost 15 years ago Actions #2

  • Status changed from New to InProgress
  • Assignee set to Pieter Libin

PL Updated by Pieter Libin almost 15 years ago Actions #3

We will check for each String argument that is passed to the public API that it is not null.

Actions

Also available in: PDF Atom