summaryrefslogtreecommitdiff
path: root/sw/source/filter
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-04-30 21:45:06 +0200
committerMichael Stahl <mstahl@redhat.com>2014-05-03 00:49:14 +0200
commit45cb8e3d1eb8a5eb20f8fd9c61ba78e5546bd15e (patch)
tree2fa31feca61f73b0b3b6ad44df6a1e4f4e621242 /sw/source/filter
parente06131e96629eee4e94eba1da7242380716e8e88 (diff)
sw: hypothetical crashes if last node is not SwTxtNode
Change-Id: I16c476ae83d01ea23891af36fd4bcca4e8992228
Diffstat (limited to 'sw/source/filter')
-rw-r--r--sw/source/filter/ww8/ww8glsy.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8glsy.cxx b/sw/source/filter/ww8/ww8glsy.cxx
index 64a4e3cd2870..1ed667ca0694 100644
--- a/sw/source/filter/ww8/ww8glsy.cxx
+++ b/sw/source/filter/ww8/ww8glsy.cxx
@@ -167,7 +167,7 @@ bool WW8Glossary::MakeEntries(SwDoc *pD, SwTextBlocks &rBlocks,
SwNodeIndex aIdx( pGlDoc->GetNodes().GetEndOfContent(),
-1 );
pCNd = aIdx.GetNode().GetCntntNode();
- SwPosition aPos( aIdx, SwIndex( pCNd, pCNd->Len() ));
+ SwPosition aPos(aIdx, SwIndex(pCNd, (pCNd) ? pCNd->Len() : 0));
pD->CopyRange( aPam, aPos, false );
rBlocks.PutDoc();
}