[IOT-2811][ES] Fix mediator android app crash. 41/22841/2
authorSenthil Kumar G S <senthil.gs@samsung.com>
Sat, 14 Oct 2017 13:11:53 +0000 (18:41 +0530)
committerAshok Babu Channa <ashok.channa@samsung.com>
Sun, 15 Oct 2017 19:09:18 +0000 (19:09 +0000)
commit474a3b3fca093d44470ff5622083009ea38a084e
tree89dade79ae5caacc3e8617e5b1c074d5005376d6
parentf9954951121bab27dea28ba451adb50322f21f3e
[IOT-2811][ES] Fix mediator android app crash.

Reason for crash:-
OcProvisioning.provisionClose() should be called only
when iotivity stack is built with security. But mediator android
app invoked it without checking whether the stack is built with security.

Change-Id: Ic2af9d649a4dce79d2bfd9daebc2c80b7dfaa2eb
Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com>
service/easy-setup/sampleapp/mediator/android/EasySetup/app/src/main/java/org/iotivity/service/easysetup/EasysetupActivity.java