Fix defects detected by static analysis
authorJihun Ha <jihun.ha@samsung.com>
Wed, 1 Feb 2017 10:13:17 +0000 (19:13 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 2 Feb 2017 02:25:47 +0000 (02:25 +0000)
commitff2eebfa6184f631e8c1fdd57e288af30576233b
tree6a85db7a1fe0efb751de0130162330f2a2c0c630
parentf6bbfc6cd179609a3204c616a8f88b552cbd6ce1
Fix defects detected by static analysis

1. nativeRemoteEnrollee and jRemoteEnrollee are initialized with NULL.
2. NULL is returned if global lister for event lister fails to create.

Change-Id: I9b77acb439f4f42e5c382370d060d525e5d6e652
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16939
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/easy-setup/mediator/richsdk/android/EasySetupCore/src/main/jni/JniEasySetup.cpp
service/easy-setup/mediator/richsdk/android/EasySetupCore/src/main/jni/JniEsListenerManager.h