summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJooSeok Park <jooseok.park@samsung.com>2017-03-28 17:14:38 -0700
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2017-03-28 17:14:38 -0700
commite49c80ed488c39a26022aec95944b309ec41c6f8 (patch)
treefa20b61f7272861fa12f06f03c204e5435692d53
parent856667df24306acb41efd8a0673b2fa656064353 (diff)
parentfd53e7e7a4688b6d99a5a897675e25731e5775f5 (diff)
downloadiotcon-e49c80ed488c39a26022aec95944b309ec41c6f8.tar.gz
iotcon-e49c80ed488c39a26022aec95944b309ec41c6f8.tar.bz2
iotcon-e49c80ed488c39a26022aec95944b309ec41c6f8.zip
Merge "Fix the return of get accessor at Representation's Interface/Attributes" into tizen
-rwxr-xr-xTizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Representation.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Representation.cs b/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Representation.cs
index 30fe764..81e6fbc 100755
--- a/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Representation.cs
+++ b/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Representation.cs
@@ -191,7 +191,7 @@ namespace Tizen.Network.IoTConnectivity
Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to get interface");
return null;
}
- return new ResourceInterfaces(interfaceHandle);
+ return (interfaceHandle == IntPtr.Zero) ? null : new ResourceInterfaces(interfaceHandle);
}
set
{
@@ -236,7 +236,7 @@ namespace Tizen.Network.IoTConnectivity
Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to get attributes");
throw IoTConnectivityErrorFactory.GetException(ret);
}
- return new Attributes(attributeHandle);
+ return (attributeHandle == IntPtr.Zero) ? null : new Attributes(attributeHandle);
}
set
{