Device Software version management
[oam/tr069-adapter.git] / mapper / src / main / java / org / commscope / tr069adapter / mapper / acs / impl / PnPPreProvisioningHandler.java
index 3858394..a3a1fd5 100644 (file)
@@ -130,9 +130,8 @@ public class PnPPreProvisioningHandler {
       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