From 70c0f8c63bd22eaaa64f701432a7d4953f51b1eb Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sun, 17 Apr 2016 18:45:29 +0200 Subject: [PATCH] Prevent NPE --- .../beans/localization/JobsLocalizationSessionBean.java | 6 ++++++ 1 file changed, 6 insertions(+) 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]) { -- 2.39.5