Kaydet (Commit) c40a774c authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Noel Power

coverity#704774 Explicit null dereferenced

Change-Id: Ief63d63233d11015f64f5e6a19544889f0389ca3
Reviewed-on: https://gerrit.libreoffice.org/2870Reviewed-by: 's avatarNoel Power <noel.power@suse.com>
Tested-by: 's avatarNoel Power <noel.power@suse.com>
üst 463417f8
...@@ -757,6 +757,10 @@ void ViewIteratorImpl::Reverse (void) ...@@ -757,6 +757,10 @@ void ViewIteratorImpl::Reverse (void)
// Move iterator to the current object. // Move iterator to the current object.
SdrObjectWeakRef xObject = maPosition.mxObject; SdrObjectWeakRef xObject = maPosition.mxObject;
maPosition.mxObject.reset(NULL); maPosition.mxObject.reset(NULL);
if (!mpObjectIterator)
return;
while (mpObjectIterator->IsMore() && maPosition.mxObject != xObject) while (mpObjectIterator->IsMore() && maPosition.mxObject != xObject)
maPosition.mxObject.reset(mpObjectIterator->Next()); maPosition.mxObject.reset(mpObjectIterator->Next());
} }
......
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