diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-09-01 15:05:19 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-09-01 15:06:45 +0200 |
commit | 21e713a751d4c6d1ad43f7eaa53b06e395b0cb3e (patch) | |
tree | 5e31c5c28f11706fc2baa6c920e62d708b362451 | |
parent | 9da6318b4e62a0e30d15df00d564dad61a74933e (diff) |
Handle dconf_client_new failure
Change-Id: Ib873ca03a2552dc0405236ed87040672ba359e5e
-rw-r--r-- | configmgr/source/dconf.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configmgr/source/dconf.cxx b/configmgr/source/dconf.cxx index 4490259e0437..ca94a9b94f78 100644 --- a/configmgr/source/dconf.cxx +++ b/configmgr/source/dconf.cxx @@ -954,6 +954,10 @@ void readDir( void readLayer(Data & data, int layer) { GObjectHolder<DConfClient> client(dconf_client_new()); + if (client.get() == nullptr) { + SAL_WARN("configmgr.dconf", "dconf_client_new failed"); + return; + } readDir( data, layer, rtl::Reference<Node>(), data.getComponents(), client, "/org/libreoffice/registry/"); |