summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2005-04-04 07:15:56 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2005-04-04 07:15:56 +0000
commit6122919f1f6a55f09d65116c6241165a57dd9815 (patch)
treea4c4b897eba19248fc24dbb3f5cbc87a9dfbe8f1 /sw/source/core/unocore
parent23a5f4709b21c09ec2bef4077d6eadb2367d223c (diff)
INTEGRATION: CWS tl07 (1.56.298); FILE MERGED
2005/01/06 12:09:15 tl 1.56.298.1: #i39372# checking for availability of in SwXDocumentIndex::update now
Diffstat (limited to 'sw/source/core/unocore')
-rw-r--r--sw/source/core/unocore/unoidx.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx
index 445e0c28e544..b0c6a1ad7e4a 100644
--- a/sw/source/core/unocore/unoidx.cxx
+++ b/sw/source/core/unocore/unoidx.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unoidx.cxx,v $
*
- * $Revision: 1.56 $
+ * $Revision: 1.57 $
*
- * last change: $Author: hjs $ $Date: 2004-06-28 13:01:28 $
+ * last change: $Author: rt $ $Date: 2005-04-04 08:15:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -456,7 +456,8 @@ OUString SwXDocumentIndex::getServiceName(void) throw( RuntimeException )
void SwXDocumentIndex::update(void) throw( RuntimeException )
{
vos::OGuard aGuard(Application::GetSolarMutex());
- SwTOXBase* pTOXBase = (SwTOXBaseSection*)GetFmt()->GetSection();
+ SwSectionFmt *pFmt = GetFmt();
+ SwTOXBase* pTOXBase = pFmt ? (SwTOXBaseSection*)pFmt->GetSection() : 0;
if(!pTOXBase)
throw RuntimeException();
((SwTOXBaseSection*)pTOXBase)->Update();