[IoTConnectivity] Handle the exception for getting Dictionary item (#1092)
authordh79pyun <31202060+dh79pyun@users.noreply.github.com>
Fri, 18 Oct 2019 01:42:54 +0000 (10:42 +0900)
committerGitHub <noreply@github.com>
Fri, 18 Oct 2019 01:42:54 +0000 (10:42 +0900)
commit60d7aec082d6f8ce897481cb663686c88549535c
tree5f20df7ed1ffa127e1901db46dcbfb7d77ca54b8
parentefb8ecb6e658ecfb16c43e97116ace725c0449ba
[IoTConnectivity] Handle the exception for getting Dictionary item (#1092)

We should prevent the crash in next exception case.

Unhandled exception.

System.Collections.Generic.KeyNotFoundException: The given key '2' was not present in the dictionary.
 at System.Collections.Concurrent.ConcurrentDictionary`2.ThrowKeyNotFoundException(Object key)
 at System.Collections.Concurrent.ConcurrentDictionary`2.get_Item(TKey key)
 at Tizen.Network.IoTConnectivity.RemoteResource.NativePutResultCallbackHandler(IntPtr resource, Int32 err, Int32 requestType, IntPtr responseHandle, IntPtr userData)
src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/RemoteResource.cs