Kaydet (Commit) 3f243471 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz: segv on nullptr

Change-Id: I5ec64411b101972ddd150a782b845d4f790ea873
üst 941ef397
......@@ -240,13 +240,12 @@ bool EmbeddedObjectContainer::HasEmbeddedObjects()
bool EmbeddedObjectContainer::HasEmbeddedObject( const OUString& rName )
{
EmbeddedObjectContainerNameMap::iterator aIt = pImpl->maObjectContainer.find( rName );
if ( aIt == pImpl->maObjectContainer.end() )
{
uno::Reference < container::XNameAccess > xAccess( pImpl->mxStorage, uno::UNO_QUERY );
return xAccess->hasByName(rName);
}
else
if (aIt != pImpl->maObjectContainer.end())
return true;
uno::Reference <container::XNameAccess> xAccess(pImpl->mxStorage, uno::UNO_QUERY);
if (!xAccess.is())
return false;
return xAccess->hasByName(rName);
}
bool EmbeddedObjectContainer::HasEmbeddedObject( const uno::Reference < embed::XEmbeddedObject >& xObj )
......
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