summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-08-27 23:41:57 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-08-27 23:41:57 +0200
commit711535f7667345b61b5b29de283894b30b400b18 (patch)
tree25bae12fa0f80d107b4bc5007d5a1ba88fe592e7 /toolkit
parent9aca3570c5e4990f591900e3702efa14958776f4 (diff)
Shouldn't be removed
Thank you Thorsten! (See https://gerrit.libreoffice.org/#/c/5639/) Change-Id: I933a318ba83c63fa2d7eaa0ecb616b1d3a14b097
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/controls/tree/treedatamodel.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/toolkit/source/controls/tree/treedatamodel.cxx b/toolkit/source/controls/tree/treedatamodel.cxx
index 292d68555dcf..c8859a202880 100644
--- a/toolkit/source/controls/tree/treedatamodel.cxx
+++ b/toolkit/source/controls/tree/treedatamodel.cxx
@@ -447,6 +447,9 @@ void SAL_CALL MutableTreeNode::removeChildByIndex( sal_Int32 nChildIndex ) throw
xImpl = (*aIter);
maChildren.erase( aIter );
+ if( !xImpl.is() )
+ throw IndexOutOfBoundsException();
+
xImpl->setParent(0);
xImpl->mbIsInserted = false;