From 5fd4760b326fd75e11ac5ad3adf9fe1cd8d7c886 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Sat, 1 May 2010 14:16:41 +0000 Subject: [PATCH] BF [ 2995212 ] NPE on Location dialog Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2995212 --- .../src/org/adempiere/webui/window/WLocationDialog.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zkwebui/WEB-INF/src/org/adempiere/webui/window/WLocationDialog.java b/zkwebui/WEB-INF/src/org/adempiere/webui/window/WLocationDialog.java index 57212ed7d9..2c30fd422f 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/window/WLocationDialog.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/window/WLocationDialog.java @@ -53,6 +53,9 @@ import org.zkoss.zk.ui.event.Events; * This class is based upon VLocationDialog, written by Jorg Janke * @author Cristina Ghita, www.arhipac.ro *
  • FR [ 2794312 ] Location AutoComplete + * @author Teo Sarca, teo.sarca@gmail.com + *
  • BF [ 2995212 ] NPE on Location dialog + * https://sourceforge.net/tracker/?func=detail&aid=2995212&group_id=176962&atid=955896 * * @TODO: Implement fOnline button present in swing client * @@ -570,7 +573,7 @@ public class WLocationDialog extends Window implements EventListener // Country/Region MCountry country = (MCountry)lstCountry.getSelectedItem().getValue(); m_location.setCountry(country); - if (country.isHasRegion()) + if (country.isHasRegion() && lstRegion.getSelectedItem() != null) { MRegion r = (MRegion)lstRegion.getSelectedItem().getValue(); m_location.setRegion(r);