Sonar Major Bug Fixing 97/44297/1
authorSumapriya <SS00493505@techmahindra.com>
Tue, 24 Apr 2018 07:11:00 +0000 (12:41 +0530)
committerSumapriya <SS00493505@techmahindra.com>
Tue, 24 Apr 2018 07:11:00 +0000 (12:41 +0530)
File:E2EServiceInstances.java
Line:L706

Sonar
Link:https://sonar.onap.org/project/issues?assigned=false&id=org.onap.so%3Aso&open=AWJskpquRGy6eclHE4zt&resolved=false&rules=squid%3AS1132&severities=MAJOR

Change-Id: Iba618d98de4153deefa3822240b3ec29226bef68
Issue-ID: SO-592
Signed-off-by: Sumapriya <SS00493505@techmahindra.com>
mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/E2EServiceInstances.java

index e0e13e7..01ca4df 100644 (file)
@@ -703,7 +703,7 @@ public class E2EServiceInstances {
                        return response;
                }
 
-               if (curStatus != null && curStatus.getResult() != null && curStatus.getResult().equalsIgnoreCase("processing")) {
+               if ("processing".equalsIgnoreCase("curStatus != null && curStatus.getResult() != null && curStatus.getResult()")) {
                        String chkMessage = "Error: Locked instance - This " + requestScope + " (" + serviceId + ") "
                                        + "now being worked with a status of " + curStatus.getResult() 
                                        + ". The latest workflow of instance must be finished or cleaned up.";