Fix Null Point Exception 71/23071/1
authorc00149107 <chenchuanyu@huawei.com>
Fri, 10 Nov 2017 03:12:02 +0000 (11:12 +0800)
committerc00149107 <chenchuanyu@huawei.com>
Fri, 10 Nov 2017 03:12:02 +0000 (11:12 +0800)
Fix Null Point Exception

Change-Id: I4e542ffd1369140b21d6252a5f90db66651df181
Issue-ID:SO-328
Signed-off-by: c00149107 <chenchuanyu@huawei.com>
mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/E2EServiceInstances.java

index f5d068f..f6b30e8 100644 (file)
@@ -604,15 +604,8 @@ public class E2EServiceInstances {
                                        DelE2ESvcResp jo = mapper.readValue(
                                                        camundaJSONResponseBody, DelE2ESvcResp.class);
                                        String operationId = jo.getOperationId();
-                                       OperationStatus operStatus = chkDuplicateServiceInOperStatus(instanceIdMap
-                                                       .get("serviceId"));
-                                       if (null != operStatus) {
-                                               msoLogger
-                                                               .debug("One task is already in progress state for this service id");
-                                       } else {
-                                               this.createOperationStatusRecord("DELETE", requestId,
+                               this.createOperationStatusRecord("DELETE", requestId,
                                                                operationId);
-                                       }
                                } catch (Exception ex) {
                                        msoLogger.error(MessageEnum.APIH_BPEL_RESPONSE_ERROR,
                                                        requestClient.getUrl(), "", "",