IDEMPIERE-2565:NPE when run init client without input city of country has "Allow Cities out of List" = false

This commit is contained in:
hieplq 2015-04-08 02:11:46 +07:00
parent f1f732d7ae
commit da2fd9fffb
1 changed files with 1 additions and 1 deletions

View File

@ -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