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>
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