IDEMPIERE-749 NPE when you open Editor from a not editable field
This commit is contained in:
parent
e3cf6df872
commit
d4fe22d6b8
|
@ -136,6 +136,7 @@ public class WTextEditorDialog extends Window implements EventListener<Event>{
|
||||||
|
|
||||||
status.setStyle("margin-top:10px;");
|
status.setStyle("margin-top:10px;");
|
||||||
textBox.addEventListener(Events.ON_CHANGE, this);
|
textBox.addEventListener(Events.ON_CHANGE, this);
|
||||||
|
if (editor != null)
|
||||||
editor.addEventListener(Events.ON_CHANGE, this);
|
editor.addEventListener(Events.ON_CHANGE, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue