[Libreoffice-commits] core.git: sd/source
Julien Nabet
serval2412 at yahoo.fr
Wed Mar 20 07:21:37 PDT 2013
sd/source/ui/view/OutlinerIterator.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit c40a774c203f4a55df67cd8da22e426b3edf0da1
Author: Julien Nabet <serval2412 at yahoo.fr>
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 <noel.power at suse.com>
Tested-by: Noel Power <noel.power at suse.com>
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());
}
More information about the Libreoffice-commits
mailing list