]> git.mxchange.org Git - jfinancials-war.git/commitdiff
also check sharingType on NULL here, too.
authorRoland Haeder <roland@mxchange.org>
Fri, 16 Oct 2015 09:34:45 +0000 (11:34 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 16 Oct 2015 09:34:45 +0000 (11:34 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/addressbook/beans/shares/SharesWebBean.java

index c98cbfcbfa6e901cf8b1b4d1b8b2ec8569ce9b2b..288e4c4a3dea9cc92b5899cbd3f0d1a48511c4b7 100644 (file)
@@ -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;