diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-04-25 12:17:17 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-04-25 12:22:27 +0200 |
commit | d34a159010fc24e13613058d25a9d6b56f7855bd (patch) | |
tree | 6371e92efa376e9c5fab73315a5dbdda3c224a72 | |
parent | 360d6bf4fd1241af47f55648b7597fda3120390a (diff) |
Belts and braces for crash in null pointer dereference
Change-Id: I17fa205f16929b913084c8eee320a73416b1eda0
-rw-r--r-- | sw/source/core/unocore/unotext.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx index a93a34fe73e5..00c6e85bd344 100644 --- a/sw/source/core/unocore/unotext.cxx +++ b/sw/source/core/unocore/unotext.cxx @@ -1625,7 +1625,8 @@ throw (lang::IllegalArgumentException, uno::RuntimeException) SwTableNode * pStartTableNode(pStartStartNode->FindTableNode()); // Is it the same table start node than the end? SwTableNode *const pEndStartTableNode(pEndStartNode->FindTableNode()); - while (pEndStartTableNode->GetIndex() < pStartTableNode->GetIndex()) + while (pEndStartTableNode && pStartTableNode && + pEndStartTableNode->GetIndex() < pStartTableNode->GetIndex()) { SwStartNode* pStartStartTableNode = pStartTableNode->StartOfSectionNode(); pStartTableNode = pStartStartTableNode->FindTableNode(); |