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:
HideakiHagiwara 2021-01-13 17:26:51 +09:00 committed by GitHub
parent a1f39f9506
commit fb8c045de9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1218,7 +1218,7 @@ public class FindWindow extends Window implements EventListener<Event>, ValueCha
WEditor editor = null;
//false will use hflex which is render 1 pixel too width on firefox
editor = WebEditorFactory.getEditor(mField, true);
if (!editor.isSearchable()) {
if (editor == null || !editor.isSearchable()) {
return false;
}
editor.setMandatory(false);