Kaydet (Commit) 720166c2 authored tarafından Fridrich Štrba's avatar Fridrich Štrba Kaydeden (comit) Petr Mladek

Belts and braces for crash in null pointer dereference

Change-Id: I17fa205f16929b913084c8eee320a73416b1eda0
(cherry picked from commit d34a1590)
Reviewed-on: https://gerrit.libreoffice.org/3605Reviewed-by: 's avatarMichael Meeks <michael.meeks@suse.com>
Tested-by: 's avatarMichael Meeks <michael.meeks@suse.com>
üst b1065a61
......@@ -1626,7 +1626,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();
......
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