IDEMPIERE-4442 FIX NPE when locatorField is Empty (#260)

This commit is contained in:
igorpojzl 2020-09-18 15:38:15 +02:00 committed by GitHub
parent 79d6c1e903
commit dede5bd506
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -659,7 +659,8 @@ public class WLocatorDialog extends Window implements EventListener<Event>
if (m_change)
{
Integer locator_id = (Integer) locatorField.getValue();
return locator_id == m_M_Locator_ID;
if(locator_id != null)
return locator_id == m_M_Locator_ID;
}
return m_change;
} // getChange