Package-proxy : description value can be NULL 00/83400/1
authorSungbae Yoo <sungbae.yoo@samsung.com>
Wed, 10 Aug 2016 12:32:10 +0000 (21:32 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Wed, 10 Aug 2016 12:33:30 +0000 (21:33 +0900)
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: I5ede0b20251d614ebf17f36abb1ad43c99e5f951

server/packman.cpp

index 8739dce..1a80e12 100644 (file)
@@ -112,6 +112,9 @@ std::string PackageInfo::getDescription() const
                throw runtime::Exception("Invalid operation");
        }
 
+       if (desc == NULL)
+               return "";
+
        return desc;
 }