From 9adaa4be7e0f8bcaa8b4c08bf026b7f71b20664c Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 26 Nov 2014 17:03:53 -0500 Subject: [PATCH] IDEMPIERE-2297 Use browser default language instead of Client System's / fix potential NPE --- .../WEB-INF/src/org/adempiere/webui/panel/LoginPanel.java | 3 +++ 1 file changed, 3 insertions(+) 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(";");