summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-12-07 14:54:19 +0100
committerDavid Tardon <dtardon@redhat.com>2015-12-07 15:23:52 +0100
commite22f9ae034addbddbb5581cdee6bfd1c39aeedea (patch)
tree55f7251098f87fe09995d43da302401a156e5561 /desktop
parentf37903004d93e7d7b008b2667881159bd8fee1e1 (diff)
tdf#96250 desktop: empty str is the same as 0 str in jsonToPropertyValues()
Change-Id: I77306dc998afc53bb1d5710a8d1ae68717f945d1 (cherry picked from commit 5cc574fefc8a2ee39db4a4bd843a3ec67dce2f11)
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 8682ce810cc4..2bdea806e3cf 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -264,7 +264,7 @@ static OUString getAbsoluteURL(const char* pURL)
static void jsonToPropertyValues(const char* pJSON, uno::Sequence<beans::PropertyValue>& rPropertyValues)
{
std::vector<beans::PropertyValue> aArguments;
- if (pJSON)
+ if (pJSON && pJSON[0] != '\0')
{
boost::property_tree::ptree aTree;
std::stringstream aStream(pJSON);