replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / service / easy-setup / mediator / richsdk / android / EasySetupCore / src / main / java / org / iotivity / service / easysetup / mediator / EasySetup.java
index 0e99e2b..cece024 100755 (executable)
@@ -87,7 +87,7 @@ public class EasySetup {
      *        discovered in a network. The OcResource object can be obtained by calling
      *        OcPlatform.findResource() API. What resource you have to discover with
      *        the OcPlatform.findResource() API is a "provisioning" resource with a certain
-     *        resource type, i.e. oic.wk.prov
+     *        resource type, i.e. oic.r.easysetup
      *
      * @return Pointer to RemoteEnrollee instance
      */
@@ -95,7 +95,7 @@ public class EasySetup {
     {
         mRemoteEnrollee = nativeCreateRemoteEnrollee(enrolleeResource);
 
-        if(mRemoteEnrollee)
+        if(mRemoteEnrollee != null)
         {
             mRemoteEnrolleeList.add(mRemoteEnrollee);
             return mRemoteEnrollee;