[Libreoffice-commits] core.git: cui/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Jan 31 15:36:59 UTC 2019


 cui/source/options/personalization.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 45a0f2177b089065a2099a798639cb534ad67ac3
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed Jan 30 16:42:43 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jan 31 16:36:30 2019 +0100

    tdf#123050: catch object does not have a key labeled 'theme_data'
    
    json::document_error: node::child: this object does not have a key labeled 'theme_data'
    
    Change-Id: Ic4daf53cff4e3e25b83393cb92957bf60cd5a92c
    Reviewed-on: https://gerrit.libreoffice.org/67161
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index 3f496bee5db1..f5d6e9f232a3 100644
--- a/cui/source/options/personalization.cxx
+++ b/cui/source/options/personalization.cxx
@@ -815,10 +815,10 @@ PersonaInfo parseSingleResponse(const std::string& rResponse)
         return PersonaInfo();
     }
 
-    auto theme_data = aDocumentRoot.child("theme_data");
-
     try
     {
+        auto theme_data = aDocumentRoot.child("theme_data");
+
         PersonaInfo aNewPersona = {
             OUString(),
             OStringToOUString( OString(theme_data.child("name").string_value().get()),


More information about the Libreoffice-commits mailing list