]> git.mxchange.org Git - jfinancials-war.git/commitdiff
Prevent NPE
authorRoland Haeder <roland@mxchange.org>
Sun, 17 Apr 2016 16:45:29 +0000 (18:45 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 17 Apr 2016 16:45:45 +0000 (18:45 +0200)
src/java/org/mxchange/addressbook/beans/localization/AddressbookLocalizationSessionBean.java

index aed99966287304f2df4b11c42d2d9c11faea4210..9bf7f1b37d5acfa72a6651a6babe7a5129ae011b 100644 (file)
@@ -56,6 +56,12 @@ public class AddressbookLocalizationSessionBean extends BaseDatabaseBean impleme
                // Log trace message
                //this.getLoggerBeanLocal().logTrace(MessageFormat.format("AddressbookLocalizationSessionBean::setLanguage: language={0} - CALLED!", language)); //NOI18N
 
+               // Is the language null?
+               if (null == language) {
+                       // This may sometimes happen, so abort here
+                       return;
+               }
+
                // Language splits
                String[] splits = language.split("_"); //NOI18N
                if (null == splits[1]) {