aboutsummaryrefslogtreecommitdiffstats
path: root/aai-resources/src/main/java/org/openecomp
diff options
context:
space:
mode:
authorshashikanth <shashikanth.vh@huawei.com>2017-09-20 14:20:02 +0530
committershashikanth <shashikanth.vh@huawei.com>2017-09-20 14:20:02 +0530
commit30402974352f2b3cbb6a824e6306560a94c28007 (patch)
treee1e6c7e0bcead9ab8ebf2065e687202ae5ed834b /aai-resources/src/main/java/org/openecomp
parent0d64272d5431bf60534c2d5436d0db4c64b94dff (diff)
Fix Blocker/Critical sonar issues
Fix Blocker/Critical sonar issues in aai/resources module https://sonar.onap.org/component_issues?id=org.onap.aai.resources%3Aresources#resolved=false|severities=BLOCKER Fixed NullPointerException might be thrown as 'oldProp' is nullable here Issue-Id:AAI-247 Change-Id: I83103832cc3e6de9a769ba27c9576e929e94e08d Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
Diffstat (limited to 'aai-resources/src/main/java/org/openecomp')
-rw-r--r--aai-resources/src/main/java/org/openecomp/aai/rest/tools/ModelVersionTransformer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/aai-resources/src/main/java/org/openecomp/aai/rest/tools/ModelVersionTransformer.java b/aai-resources/src/main/java/org/openecomp/aai/rest/tools/ModelVersionTransformer.java
index 141d71a..d840b90 100644
--- a/aai-resources/src/main/java/org/openecomp/aai/rest/tools/ModelVersionTransformer.java
+++ b/aai-resources/src/main/java/org/openecomp/aai/rest/tools/ModelVersionTransformer.java
@@ -285,7 +285,7 @@ public class ModelVersionTransformer extends RESTAPI {
oldVal = oldRelationshipDatum.getValue("relationship-value");
}
- if (oldProp.equals("model.model-name-version-id")) {
+ if ("model.model-name-version-id".equals(oldProp)) {
// make two new relationshipDatum for use w/ the new style model
// you should have the model in the list of models we collected earlier