Fix Prevent issue WGID : 36901 60/153560/1 accepted/tizen/4.0/unified/20170929.080717 submit/tizen_4.0/20170929.023108
authorjh8801.jung <jh8801.jung@samsung.com>
Thu, 28 Sep 2017 23:41:17 +0000 (08:41 +0900)
committersaerome kim <saerome.kim@samsung.com>
Fri, 29 Sep 2017 00:32:20 +0000 (00:32 +0000)
Signed-off-by: jh8801.jung <jh8801.jung@samsung.com>
Change-Id: Ic7df65b8c9cab89453f6b814825ba3e6690278fa
(cherry picked from commit 5cfe7fe1a3a014fdb6e4ca0ed15f1e93ca162194)

zigbee-daemon/zigbee-lib/src/zblib_service.c

index 61b2025..f512514 100644 (file)
@@ -458,7 +458,7 @@ gboolean zblib_service_initialize_plugins(ZigBeeService *service)
                        /* If there is no initializer, it should have asynchronous one */
                        const ZblibPluginDescriptor_t *descriptor =
                                        zblib_plugin_get_descriptor(plugin);
-                       if (NULL != descriptor->init_async) {
+                       if (NULL != descriptor && NULL != descriptor->init_async) {
                                /* Register async initializer */
                                struct _zblib_async_init_info *info =
                                        g_try_new0(struct _zblib_async_init_info, 1);