From: Tomasz Marciniak Date: Tue, 14 Jun 2016 13:31:16 +0000 (+0200) Subject: [Common] Added checking if error is not equal to null. X-Git-Tag: submit/tizen/20160614.231046~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F63%2F74563%2F1;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Common] Added checking if error is not equal to null. [Verification] Code compiles. Change-Id: I4f21b360f851a58108a96a3e5c805af4715f6e4c Signed-off-by: Tomasz Marciniak --- diff --git a/src/common/filesystem/filesystem_provider_deviced.cc b/src/common/filesystem/filesystem_provider_deviced.cc index 4f17cc66..cf6a7ad5 100644 --- a/src/common/filesystem/filesystem_provider_deviced.cc +++ b/src/common/filesystem/filesystem_provider_deviced.cc @@ -249,7 +249,8 @@ Storages FilesystemProviderDeviced::GetStorages() { NULL, &error); if (!variant || error) { - LoggerE("Failed to call GetDeviceList method - %s", error->message); + std::string message = error ? error->message : ""; + LoggerE("Failed to call GetDeviceList method - %s", message.c_str()); return Storages(); } return GetStoragesFromGVariant(variant);