- add null checking logic
Change-Id: I9e9c77b91799b674133daafbe770908c17952c23
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
//LCOV_EXCL_START : system error
_E("DBUS_METHOD_CALL: not able to send message : %s",
err && err->message ? err->message : NULL);
//LCOV_EXCL_START : system error
_E("DBUS_METHOD_CALL: not able to send message : %s",
err && err->message ? err->message : NULL);
- if (err->code == G_FILE_ERROR_TXTBSY)
+ if (err && (err->code == G_FILE_ERROR_TXTBSY))
*error = RUNTIME_INFO_ERROR_PERMISSION_DENIED;
else
*error = RUNTIME_INFO_ERROR_REMOTE_IO;
*error = RUNTIME_INFO_ERROR_PERMISSION_DENIED;
else
*error = RUNTIME_INFO_ERROR_REMOTE_IO;