Kaydet (Commit) d34a1590 authored tarafından Fridrich Štrba's avatar Fridrich Štrba

Belts and braces for crash in null pointer dereference

Change-Id: I17fa205f16929b913084c8eee320a73416b1eda0
üst 360d6bf4
...@@ -1625,7 +1625,8 @@ throw (lang::IllegalArgumentException, uno::RuntimeException) ...@@ -1625,7 +1625,8 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
SwTableNode * pStartTableNode(pStartStartNode->FindTableNode()); SwTableNode * pStartTableNode(pStartStartNode->FindTableNode());
// Is it the same table start node than the end? // Is it the same table start node than the end?
SwTableNode *const pEndStartTableNode(pEndStartNode->FindTableNode()); SwTableNode *const pEndStartTableNode(pEndStartNode->FindTableNode());
while (pEndStartTableNode->GetIndex() < pStartTableNode->GetIndex()) while (pEndStartTableNode && pStartTableNode &&
pEndStartTableNode->GetIndex() < pStartTableNode->GetIndex())
{ {
SwStartNode* pStartStartTableNode = pStartTableNode->StartOfSectionNode(); SwStartNode* pStartStartTableNode = pStartTableNode->StartOfSectionNode();
pStartTableNode = pStartStartTableNode->FindTableNode(); pStartTableNode = pStartStartTableNode->FindTableNode();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment