Fix svace issue 76/224376/2 accepted/tizen/unified/20200212.125913 submit/tizen/20200211.051146
authorYunmi Ha <yunmi.ha@samsung.com>
Mon, 10 Feb 2020 06:49:48 +0000 (15:49 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 10 Feb 2020 07:12:38 +0000 (07:12 +0000)
- add null checking logic

Change-Id: I1eec58a31247d12cbd3c2d205a914e81f701313d
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
src/dbus.c

index 9307911..14891bf 100644 (file)
@@ -388,7 +388,7 @@ static void cb_pending(GDBusProxy *proxy,
                        &err);
        if (!output)
                _E("g_dbus_proxy_call_finish error : %d-%s", //LCOV_EXCL_LINE
-                               err->code, err->message);
+                               err?err->code:0, err?err->message:"NULL");
 
        if (data && data->func)
                data->func(data->data, output, err);