IOT-3045 Fix return type of getResourceHandleAtUri 75/24575/3
authorGeorge Nash <george.nash@intel.com>
Wed, 4 Apr 2018 19:27:47 +0000 (12:27 -0700)
committerRick Bell <richard.s.bell@intel.com>
Thu, 5 Apr 2018 06:09:26 +0000 (06:09 +0000)
commit0098714cfa2fe6d28a4fdddfaf79af26b8ac5043
tree2247c324693659e6c4678e17a8c4e2e6fadf6646
parent9e0756c920bfcda821e948f4969280111e40b6a5
IOT-3045 Fix return type of getResourceHandleAtUri

OcPlatfrom.getResourceAtUri should return null
when a resource is not found at the specified
URI. The class JniOcResourceHandle returned
a non-null value even when a null resourceHandle
was passed into the function. The assumption
when the code was originally created was that
it would return null. This assumption was incorrect.

This was tested by modifying simpleserver sample
Modifications not included as part of this commit.

Bug: https://jira.iotivity.org/browse/IOT-3045
Change-Id: I3e923dca3415e9e0ec473b1dd4ff4619538f325b
Signed-off-by: George Nash <george.nash@intel.com>
java/jni/JniOcPlatform.cpp