Add missing return statement
authorErkka Kääriä <erkka.kaaria@intel.com>
Thu, 12 Nov 2015 08:58:06 +0000 (10:58 +0200)
committerJon A. Cruz <jonc@osg.samsung.com>
Mon, 23 Nov 2015 20:18:46 +0000 (20:18 +0000)
A non-void method in android jni wrapper was missing its return statement in
case an OCException was thrown.

Change-Id: Ic5651f3161e9387bdc8522d9509832337a938f23
Signed-off-by: Erkka Kääriä <erkka.kaaria@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/4175
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Naga Ashok Jampani <jn.ashok@samsung.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
android/android_api/base/jni/JniOcSecureResource.cpp

index ee7e5e0..29e2ce8 100644 (file)
@@ -566,6 +566,7 @@ JNIEXPORT jobject JNICALL Java_org_iotivity_base_OcSecureResource_getLinkedDevic
     {
         LOGE("%s", e.reason().c_str());
         ThrowOcException(e.code(), e.reason().c_str());
+        return nullptr;
     }
 }