summaryrefslogtreecommitdiffstats
path: root/appc-common
diff options
context:
space:
mode:
authoramshegokar <AS00500801@techmahindra.com>2017-09-21 19:21:47 +0530
committeramshegokar <AS00500801@techmahindra.com>2017-09-21 19:22:02 +0530
commit9647cc9074a6ba71cfad6e1ea4663f7fbdd947fe (patch)
treed4d3b8f4165daf2b30173fb7d2abd108bed5bf81 /appc-common
parentd51cafc10c705cccfed1dee2d478c872a0a87eb8 (diff)
Sonar Blocker
for blocker APP-C Common. Sonar Link:https://sonar.onap.org/component_issues/index?id=org.openecomp.appc%3Aappc#severities=BLOCKER|rules=squid%3AS2097 Change-Id: I65ee1745f5fd5a7f7ac3365704943b22a9341e8a Issue-ID: APPC-224 Signed-off-by: amshegokar <AS00500801@techmahindra.com>
Diffstat (limited to 'appc-common')
-rw-r--r--appc-common/src/main/java/org/openecomp/appc/util/StructuredPropertyHelper.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/appc-common/src/main/java/org/openecomp/appc/util/StructuredPropertyHelper.java b/appc-common/src/main/java/org/openecomp/appc/util/StructuredPropertyHelper.java
index 2f292bcc7..dc40b631e 100644
--- a/appc-common/src/main/java/org/openecomp/appc/util/StructuredPropertyHelper.java
+++ b/appc-common/src/main/java/org/openecomp/appc/util/StructuredPropertyHelper.java
@@ -219,6 +219,11 @@ public class StructuredPropertyHelper {
*/
@Override
public boolean equals(Object obj) {
+ if (obj == null)
+ return false;
+ if (this.getClass() != obj.getClass())
+ return false;
+
Node other = (Node) obj;
boolean result = name.equals(other.name);