IDEMPIERE-2334 Allow zoom from URL / fix NPE

This commit is contained in:
Carlos Ruiz 2014-11-25 13:49:39 -05:00
parent 1e010fd936
commit a99bdc15d6
1 changed files with 5 additions and 3 deletions

View File

@ -310,9 +310,11 @@ public class AdempiereWebUI extends Window implements EventListener<Event>, IWeb
private String getPrmString(String prm) { private String getPrmString(String prm) {
String retValue = ""; String retValue = "";
if (m_URLParameters != null) {
String[] strs = m_URLParameters.get(prm); String[] strs = m_URLParameters.get(prm);
if (strs != null && strs.length == 1 && strs[0] != null) if (strs != null && strs.length == 1 && strs[0] != null)
retValue = strs[0]; retValue = strs[0];
}
return retValue; return retValue;
} }