From 33c2447e86bdbb3826737810352c89c0e1850c57 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 16 Oct 2015 11:34:45 +0200 Subject: [PATCH] =?utf8?q?also=20check=20sharingType=20on=20NULL=20here,?= =?utf8?q?=20too.=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../mxchange/addressbook/beans/shares/SharesWebBean.java | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.39.5