[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>