logger.info("Performing PROVISION operation");\r
DeviceRPCResponse deviceRPCResponse = syncHandler.performDeviceOperation(deviceRPCRequest);\r
logger.debug("Received Provisioning Operation result");\r
- if (deviceRPCResponse == null || !StringUtils.isEmpty(deviceRPCResponse.getFaultString())) {\r
- logger.error("Device operation failed, Reason: {}", ((deviceRPCResponse == null)\r
- ? "Null Operation result" : deviceRPCResponse.getFaultString()));\r
+ if (deviceRPCResponse != null && !StringUtils.isEmpty(deviceRPCResponse.getFaultString())) {\r
+ logger.error("Device operation failed, Reason: {}", deviceRPCResponse.getFaultString());\r
isMandatoryProvFailed = true;\r
break;\r
}\r