sd/source/ui/view/OutlinerIterator.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit c40a774c203f4a55df67cd8da22e426b3edf0da1
Author: Julien Nabet <[email protected]>
Date:   Wed Mar 20 13:58:03 2013 +0100

    coverity#704774 Explicit null dereferenced
    
    Change-Id: Ief63d63233d11015f64f5e6a19544889f0389ca3
    Reviewed-on: https://gerrit.libreoffice.org/2870
    Reviewed-by: Noel Power <[email protected]>
    Tested-by: Noel Power <[email protected]>

diff --git a/sd/source/ui/view/OutlinerIterator.cxx 
b/sd/source/ui/view/OutlinerIterator.cxx
index 450a747..b1b39aa 100644
--- a/sd/source/ui/view/OutlinerIterator.cxx
+++ b/sd/source/ui/view/OutlinerIterator.cxx
@@ -757,6 +757,10 @@ void ViewIteratorImpl::Reverse (void)
     // Move iterator to the current object.
     SdrObjectWeakRef xObject = maPosition.mxObject;
     maPosition.mxObject.reset(NULL);
+
+    if (!mpObjectIterator)
+        return;
+
     while (mpObjectIterator->IsMore() && maPosition.mxObject != xObject)
         maPosition.mxObject.reset(mpObjectIterator->Next());
 }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to