From 12c2bbc317b355353d4f725c9439fbde803b4fc4 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 23 Sep 2015 18:34:50 +0200 Subject: Report nil-valued localized property as such ...regression introduced with 879aa54e895a56cb65f93ae98e6a9e7b08981a47 "configmgr: accelerate simple config key fetches." Change-Id: Ifb732a25d902f58c76e06ebaad3a6178ff102f58 --- configmgr/source/childaccess.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'configmgr') diff --git a/configmgr/source/childaccess.cxx b/configmgr/source/childaccess.cxx index a9771ff78d20..7295f8908b1b 100644 --- a/configmgr/source/childaccess.cxx +++ b/configmgr/source/childaccess.cxx @@ -269,8 +269,7 @@ css::uno::Any ChildAccess::asValue() rtl::Reference< ChildAccess > child(getChild("*" + locale)); // As a last resort, return a nil value even though it may be // illegal for the given property: - if (child.is()) - return child->asValue(); + return child.is() ? child->asValue() : css::uno::Any(); } } value = css::uno::makeAny( -- cgit v1.2.3