IDEMPIERE-749 NPE when you open Editor from a not editable field

This commit is contained in:
Carlos Ruiz 2013-03-20 09:30:55 -05:00
parent e3cf6df872
commit d4fe22d6b8
1 changed files with 2 additions and 1 deletions

View File

@ -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);
} }