summaryrefslogtreecommitdiff
path: root/sw/source/ui/index/cntex.cxx
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2002-10-22 06:16:13 +0000
committerOliver Specht <os@openoffice.org>2002-10-22 06:16:13 +0000
commitb0431fcf07b49dccb1ceff03ca60336acfceb9d1 (patch)
treedee1bda45ff4fb501f0efe6476210da1c8ed62be /sw/source/ui/index/cntex.cxx
parent97e1df93aa9cec8f82eff2eed16c56240cdaff85 (diff)
#104365# check whether sections have been initialized
Diffstat (limited to 'sw/source/ui/index/cntex.cxx')
-rw-r--r--sw/source/ui/index/cntex.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/source/ui/index/cntex.cxx b/sw/source/ui/index/cntex.cxx
index abb184892140..896e001aa46f 100644
--- a/sw/source/ui/index/cntex.cxx
+++ b/sw/source/ui/index/cntex.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: cntex.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: os $ $Date: 2001-11-02 12:57:07 $
+ * last change: $Author: os $ $Date: 2002-10-22 07:16:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -303,7 +303,9 @@ void SwMultiTOXTabDialog::CreateOrUpdateExample(
if(!pxIndexSectionsArr[nTOXIndex]->xDocumentIndex.is())
{
bInitialCreate = sal_True;
- uno::Reference< text::XTextRange > xAnchor = pxIndexSectionsArr[nTOXIndex]->xContainerSection->getAnchor();
+ if(!pxIndexSectionsArr[nTOXIndex]->xContainerSection.is())
+ throw uno::RuntimeException();
+ uno::Reference< text::XTextRange > xAnchor = pxIndexSectionsArr[nTOXIndex]->xContainerSection->getAnchor();
xAnchor = xAnchor->getStart();
uno::Reference< text::XTextCursor > xCrsr = xAnchor->getText()->createTextCursorByRange(xAnchor);