]> git.mxchange.org Git - jjobs-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:53 +0000 (18:45 +0200)
src/java/org/mxchange/jjobs/beans/localization/JobsLocalizationSessionBean.java

index 87ee9a99bc32c6cf0baff3112f16b6f2bd05422f..62d99a8b650fb982e3dfc8583d8be60c08bf8e78 100644 (file)
@@ -56,6 +56,12 @@ public class JobsLocalizationSessionBean extends BaseDatabaseBean implements Job
                // Log trace message
                //this.getLoggerBeanLocal().logTrace(MessageFormat.format("JobsLocalizationSessionBean::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]) {