IDEMPIERE-4644 Heading only Field is the cause of NullPointerException Error on Find Window. I Added null check logic. (#523)
Co-authored-by: jpiere <h.hagiwara@compiere-distribution-lab.net>
This commit is contained in:
parent
a1f39f9506
commit
fb8c045de9
|
@ -1218,7 +1218,7 @@ public class FindWindow extends Window implements EventListener<Event>, ValueCha
|
||||||
WEditor editor = null;
|
WEditor editor = null;
|
||||||
//false will use hflex which is render 1 pixel too width on firefox
|
//false will use hflex which is render 1 pixel too width on firefox
|
||||||
editor = WebEditorFactory.getEditor(mField, true);
|
editor = WebEditorFactory.getEditor(mField, true);
|
||||||
if (!editor.isSearchable()) {
|
if (editor == null || !editor.isSearchable()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
editor.setMandatory(false);
|
editor.setMandatory(false);
|
||||||
|
|
Loading…
Reference in New Issue