Fix Prevent issue WGID : 36901 57/153557/1
authorjh8801.jung <jh8801.jung@samsung.com>
Thu, 28 Sep 2017 23:41:17 +0000 (08:41 +0900)
committerjh8801.jung <jh8801.jung@samsung.com>
Thu, 28 Sep 2017 23:41:56 +0000 (08:41 +0900)
Signed-off-by: jh8801.jung <jh8801.jung@samsung.com>
Change-Id: Ic7df65b8c9cab89453f6b814825ba3e6690278fa

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

index 045b651..c8c078b 100644 (file)
@@ -457,7 +457,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);