connectivity: Check on g_errorHandler pointer 91/22091/8
authorVeeraj Khokale <veeraj.sk@samsung.com>
Mon, 29 May 2017 11:55:08 +0000 (17:25 +0530)
committerZiran Sun <ziran.sun@samsung.com>
Mon, 9 Oct 2017 13:54:00 +0000 (13:54 +0000)
commite11c93bf2445babfb8c1eb1ab8b7b4330b71480e
tree7b8265f78efd7c70a49fbcba6b57ccfd846948b4
parent617cdc3177a6e8494df0777797ffbb958f7cd3b2
connectivity: Check on g_errorHandler pointer

[IOT-2346] Accessing 'g_errorHandler' without NULL check

Add null checks before accessing
g_errorHandler in le adapter.

Change-Id: I9285ca29f91e99eefb0f8db23ccc7e31dca7e702
Signed-off-by: Veeraj Khokale <veeraj.sk@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20465
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit 515372a4f92c7e620c8b246819618f8bfeb04c37)
Bug: https://jira.iotivity.org/browse/IOT-2346
resource/csdk/connectivity/src/bt_le_adapter/caleadapter.c