From 6660d0e7125fa71827e5a9b0037a6bdb24d947e0 Mon Sep 17 00:00:00 2001 From: shrek2000 Date: Wed, 27 Dec 2017 09:40:11 +0200 Subject: Avoid Null Pointer Change-Id: I91eb26e842495271017d0c918bdae81d03c192f2 Issue-ID: SDC-797 Signed-off-by: shrek2000 --- .../org/openecomp/sdc/notification/dao/types/NotificationEntity.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-api/src/main/java') diff --git a/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-api/src/main/java/org/openecomp/sdc/notification/dao/types/NotificationEntity.java b/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-api/src/main/java/org/openecomp/sdc/notification/dao/types/NotificationEntity.java index 52377077cf..cc9309be97 100644 --- a/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-api/src/main/java/org/openecomp/sdc/notification/dao/types/NotificationEntity.java +++ b/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-api/src/main/java/org/openecomp/sdc/notification/dao/types/NotificationEntity.java @@ -139,6 +139,10 @@ public class NotificationEntity { return true; } + if (other == null){ + return false; + } + if (Objects.equals(getClass(), other.getClass())) { return false; } -- cgit 1.2.3-korg