summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-11-03 16:15:15 +0100
committersb <sb@openoffice.org>2010-11-03 16:15:15 +0100
commita5481744fbbeb6c08ea8342b92923e333cd2ff69 (patch)
tree662cdaf3fb3f57c36d9e4dbc29845e4ad3d51bed
parentcdb541abfd3e47997bad2a1b27b7a11d1b2d468a (diff)
sb132: #i112107# handle configmgr::Access::asProperty being called on an access w/o parent
-rw-r--r--configmgr/source/access.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx
index 3602f3cd73..933a414d33 100644
--- a/configmgr/source/access.cxx
+++ b/configmgr/source/access.cxx
@@ -2089,7 +2089,8 @@ css::beans::Property Access::asProperty() {
default:
type = cppu::UnoType< css::uno::XInterface >::get(); //TODO: correct?
nillable = false;
- removable = getParentNode()->kind() == Node::KIND_SET;
+ rtl::Reference< Node > parent(getParentNode());
+ removable = parent.is() && parent->kind() == Node::KIND_SET;
break;
}
return css::beans::Property(