[Easy-Setup] Fixed SVACE issues for Android [Mediator]
authorJay Sharma <jay.sharma@samsung.com>
Fri, 1 Apr 2016 11:06:12 +0000 (16:36 +0530)
committerMadan Lanka <lanka.madan@samsung.com>
Mon, 4 Apr 2016 00:34:44 +0000 (00:34 +0000)
Change-Id: Ia0f3c0ec84e6129fafb8e4334b10b493977222b5
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7525
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
service/easy-setup/mediator/richsdk/src/EnrolleeSecurity.cpp

index 6d72009..0f35ce6 100755 (executable)
@@ -80,6 +80,8 @@ namespace OIC
                 // returned by the security layer.
                 return list[i];
             }
+            OIC_LOG(ERROR, ENROLEE_SECURITY_TAG,"Error!!! DeviceList_t is NULL");
+            return NULL;
         }
 
         void EnrolleeSecurity::convertUUIDToString(OicUuid_t uuid, std::string& uuidString)
@@ -184,7 +186,6 @@ namespace OIC
                 ownershipStatus = DEVICE_NOT_OWNED;
                 //Throw exception
                 throw ESPlatformException(result);
-                return ownershipStatus;
             }
             else if (pUnownedDevList.size())
             {