From: Roland Haeder Date: Fri, 16 Oct 2015 09:34:45 +0000 (+0200) Subject: also check sharingType on NULL here, too. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=33c2447e86bdbb3826737810352c89c0e1850c57;p=addressbook-war.git also check sharingType on NULL here, too. Signed-off-by:Roland Häder --- diff --git a/src/java/org/mxchange/addressbook/beans/shares/SharesWebBean.java b/src/java/org/mxchange/addressbook/beans/shares/SharesWebBean.java index c98cbfcb..288e4c4a 100644 --- a/src/java/org/mxchange/addressbook/beans/shares/SharesWebBean.java +++ b/src/java/org/mxchange/addressbook/beans/shares/SharesWebBean.java @@ -116,6 +116,9 @@ public class SharesWebBean implements SharesWebController { if (null == event) { // Throw NPE throw new NullPointerException("event is null"); //NOI18N + } else if (event.getSharingType() == null) { + // Throw NPE + throw new NullPointerException("event.sharingType is null"); //NOI18N } else if (event.getSharingType() != SharingType.ENDED) { // Wrong event return; @@ -134,6 +137,9 @@ public class SharesWebBean implements SharesWebController { if (null == event) { // Throw NPE throw new NullPointerException("event is null"); //NOI18N + } else if (event.getSharingType() == null) { + // Throw NPE + throw new NullPointerException("event.sharingType is null"); //NOI18N } else if (event.getSharingType() != SharingType.STARTED) { // Wrong event return;