]> git.mxchange.org Git - pizzaservice-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:29 +0000 (18:45 +0200)
src/java/org/mxchange/pizzaapplication/beans/localization/PizzaLocalizationSessionBean.java

index b6b67c499796e74a2d0777dd338c530283ce7b23..648cf36dcf3b70fe993876d1df805824e7c12cf8 100644 (file)
@@ -56,6 +56,12 @@ public class PizzaLocalizationSessionBean extends BaseDatabaseBean implements Pi
                // Log trace message
                //this.getLoggerBeanLocal().logTrace(MessageFormat.format("PizzaLocalizationSessionBean::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]) {