Fix wrong comparison statement in Easy setup. 57/11157/3
authorJihun Ha <jihun.ha@samsung.com>
Tue, 30 Aug 2016 13:15:04 +0000 (22:15 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 1 Sep 2016 02:16:18 +0000 (02:16 +0000)
mRemoteEnrollee can not be converted to boolean. Thus, it should
be changed to null checking statement.

Change-Id: Iec38fa2995fbc70b97e37e7b9318a19a82f0c2fb
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11157
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/easy-setup/mediator/richsdk/android/EasySetupCore/src/main/java/org/iotivity/service/easysetup/mediator/EasySetup.java

index 0e99e2b..5cea6d0 100755 (executable)
@@ -95,7 +95,7 @@ public class EasySetup {
     {
         mRemoteEnrollee = nativeCreateRemoteEnrollee(enrolleeResource);
 
-        if(mRemoteEnrollee)
+        if(mRemoteEnrollee != null)
         {
             mRemoteEnrolleeList.add(mRemoteEnrollee);
             return mRemoteEnrollee;