[CONPRO-1333] Fix for crash in JniOnPostListener 24/195224/1
authorHarish Kumara M <h.marappa@samsung.com>
Wed, 5 Dec 2018 08:48:51 +0000 (14:18 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 12 Dec 2018 00:12:28 +0000 (09:12 +0900)
commit4b7e5785f518131ef19a51d6ad74382e1ac9fb52
treeef4bb6a3777e1acfdc21c92102918e9d27bb5efc
parente03b59a89b4477f7239a5a49764e4d5ea1ad0ea2
[CONPRO-1333] Fix for crash in JniOnPostListener

Crash was due to post response received on deleted JniOnPostListener
object. This change make sure of valid JniOcResource object when CRUDN
callback invoked from core stack layer.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/360
(cherry picked from commit 494f1578d7edceec084dd42b59c3198bdd2fb6a8)

Change-Id: Idac701367ed40ece7dbadd82e1484babc918aca0
Signed-off-by: Harish Kumara M <h.marappa@samsung.com>
Signed-off-by: pilli manikanta <p.manikanta@partner.samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
21 files changed:
android/android_api/base/jni/JniListenerManager.h
android/android_api/base/jni/JniOcAccountManager.cpp
android/android_api/base/jni/JniOcPlatform.cpp
android/android_api/base/jni/JniOcResource.cpp
android/android_api/base/jni/JniOcResource.h
android/android_api/base/jni/JniOcStack.h
android/android_api/base/jni/JniOnDeleteListener.cpp
android/android_api/base/jni/JniOnDeleteListener.h
android/android_api/base/jni/JniOnGetListener.cpp
android/android_api/base/jni/JniOnGetListener.h
android/android_api/base/jni/JniOnMQSubscribeListener.cpp
android/android_api/base/jni/JniOnMQSubscribeListener.h
android/android_api/base/jni/JniOnMQTopicFoundListener.cpp
android/android_api/base/jni/JniOnMQTopicFoundListener.h
android/android_api/base/jni/JniOnObserveListener.cpp
android/android_api/base/jni/JniOnObserveListener.h
android/android_api/base/jni/JniOnPostListener.cpp
android/android_api/base/jni/JniOnPostListener.h
android/android_api/base/jni/JniOnPutListener.cpp
android/android_api/base/jni/JniOnPutListener.h
service/easy-setup/mediator/richsdk/android/EasySetupCore/src/main/jni/JniJvm.h