IDEMPIERE-2565:NPE when run init client without input city of country has "Allow Cities out of List" = false
This commit is contained in:
parent
f1f732d7ae
commit
da2fd9fffb
|
@ -439,7 +439,7 @@ public class MLocation extends X_C_Location implements Comparator<Object>
|
|||
public boolean isAddressLinesReverse()
|
||||
{
|
||||
// Local
|
||||
if (getC_Country_ID() == MCountry.getDefault(getCtx()).getC_Country_ID())
|
||||
if (MCountry.getDefault(getCtx()) != null && getC_Country_ID() == MCountry.getDefault(getCtx()).getC_Country_ID())
|
||||
return getCountry().isAddressLinesLocalReverse();
|
||||
return getCountry().isAddressLinesReverse();
|
||||
} // isAddressLinesReverse
|
||||
|
|
Loading…
Reference in New Issue