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