From de49c2d4edc81d6671dba6654c0825914092d6bf Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Thu, 30 May 2019 20:49:05 +0000 Subject: Handle operation state null from VNFM Issue-ID: SO-1956 Change-Id: I8d2efe3f9d97a38a533b33eabd0be2a42cebef66 Signed-off-by: MichaelMorris --- .../org/onap/so/adapters/vnfmadapter/jobmanagement/JobManager.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src') diff --git a/adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main/java/org/onap/so/adapters/vnfmadapter/jobmanagement/JobManager.java b/adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main/java/org/onap/so/adapters/vnfmadapter/jobmanagement/JobManager.java index 345ff5119a..b3552c780e 100644 --- a/adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main/java/org/onap/so/adapters/vnfmadapter/jobmanagement/JobManager.java +++ b/adapters/mso-vnfm-adapter/mso-vnfm-etsi-adapter/src/main/java/org/onap/so/adapters/vnfmadapter/jobmanagement/JobManager.java @@ -93,6 +93,10 @@ public class JobManager { logger.debug("Job Id: " + jobId + ", operationId: " + operation.getId() + ", operation details: " + operation); + if (operation.getOperationState() == null) { + return response.operationStatusRetrievalStatus(OperationStatusRetrievalStatusEnum.WAITING_FOR_STATUS); + } + response.setOperationStatusRetrievalStatus(OperationStatusRetrievalStatusEnum.STATUS_FOUND); response.setId(operation.getId()); response.setOperation(OperationEnum.fromValue(operation.getOperation().getValue())); -- cgit 1.2.3-korg