diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/LoginPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/LoginPanel.java index 609cedd36a..01da1dedd1 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/LoginPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/LoginPanel.java @@ -664,6 +664,9 @@ public class LoginPanel extends Window implements EventListener /** get default languages from the browser */ private List browserLanguages(String header) { List arrstr = new ArrayList(); + if (header == null) + return arrstr; + for (String str : header.split(",")){ String[] arr = str.trim().replace("-", "_").split(";");