sw/source/core/unocore/unotext.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d34a159010fc24e13613058d25a9d6b56f7855bd
Author: Fridrich Å trba <fridrich.st...@bluewin.ch>
Date:   Thu Apr 25 12:17:17 2013 +0200

    Belts and braces for crash in null pointer dereference
    
    Change-Id: I17fa205f16929b913084c8eee320a73416b1eda0

diff --git a/sw/source/core/unocore/unotext.cxx 
b/sw/source/core/unocore/unotext.cxx
index a93a34f..00c6e85 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();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to