- remove duplicate call to performPCE
- return false on NullPointerException in validate service creation
Change-Id: Ia87f913009f20a0e85b91cef709f555ade72b5a7
Signed-off-by: Ahmed Abbas <ahmad.helmy@orange.com>
this.rendererListenerImpl.setserviceDataStoreOperations(serviceDataStoreOperations);
this.rendererListenerImpl.setServiceInput(new ServiceInput(input));
this.rendererListenerImpl.setTempService(true);
- this.pceServiceWrapper.performPCE(input, true);
PathComputationRequestOutput output = this.pceServiceWrapper.performPCE(input, true);
if (output != null) {
LOG.info("Service compliant, temp serviceCreate in progress...");
}
} catch (NullPointerException e) {
LOG.error("one of input parameter is null ",e);
- OperationResult.failed("one of input parameter is null.");
+ return OperationResult.failed("one of input parameter is null.");
}
return OperationResult.ok("Validation successful.");
}