Blame SOURCES/0366-tdf-96250-desktop-empty-str-is-the-same-as-0-str-in-.patch

135360
From cfae897d306b6b140052c4c3f06dd614f9a22943 Mon Sep 17 00:00:00 2001
135360
From: Miklos Vajna <vmiklos@collabora.co.uk>
135360
Date: Mon, 7 Dec 2015 14:54:19 +0100
135360
Subject: [PATCH 366/398] tdf#96250 desktop: empty str is the same as 0 str in
135360
 jsonToPropertyValues()
135360
135360
Change-Id: I77306dc998afc53bb1d5710a8d1ae68717f945d1
135360
(cherry picked from commit 5cc574fefc8a2ee39db4a4bd843a3ec67dce2f11)
135360
(cherry picked from commit e22f9ae034addbddbb5581cdee6bfd1c39aeedea)
135360
---
135360
 desktop/source/lib/init.cxx | 2 +-
135360
 1 file changed, 1 insertion(+), 1 deletion(-)
135360
135360
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
135360
index 57bb177f49db..6bed25514137 100644
135360
--- a/desktop/source/lib/init.cxx
135360
+++ b/desktop/source/lib/init.cxx
135360
@@ -263,7 +263,7 @@ static OUString getAbsoluteURL(const char* pURL)
135360
 static void jsonToPropertyValues(const char* pJSON, uno::Sequence<beans::PropertyValue>& rPropertyValues)
135360
 {
135360
     std::vector<beans::PropertyValue> aArguments;
135360
-    if (pJSON)
135360
+    if (pJSON && pJSON[0] != '\0')
135360
     {
135360
         boost::property_tree::ptree aTree;
135360
         std::stringstream aStream(pJSON);
135360
-- 
135360
2.12.0
135360