From: Roland Haeder Date: Sun, 17 Apr 2016 16:45:29 +0000 (+0200) Subject: Prevent NPE X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=70c0f8c63bd22eaaa64f701432a7d4953f51b1eb;p=jjobs-war.git Prevent NPE --- diff --git a/src/java/org/mxchange/jjobs/beans/localization/JobsLocalizationSessionBean.java b/src/java/org/mxchange/jjobs/beans/localization/JobsLocalizationSessionBean.java index 87ee9a99..62d99a8b 100644 --- a/src/java/org/mxchange/jjobs/beans/localization/JobsLocalizationSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/localization/JobsLocalizationSessionBean.java @@ -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]) {