Kaydet (Commit) 6e403346 authored tarafından Laurent Godard's avatar Laurent Godard Kaydeden (comit) Caolán McNamara

null pointer guard if no user defined types declared at the module level

Change-Id: I368a168c636e4029e9cd9bbe4a4df5d9b846c923
Reviewed-on: https://gerrit.libreoffice.org/17834Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst b28a2cb6
......@@ -443,6 +443,8 @@ bool SbiImage::Save( SvStream& r, sal_uInt32 nVer )
SbiCloseRecord( r, nPos );
}
// User defined types
if (rTypes)
{
sal_uInt16 nTypes = rTypes->Count();
if (nTypes > 0 )
{
......@@ -517,6 +519,7 @@ bool SbiImage::Save( SvStream& r, sal_uInt32 nVer )
}
SbiCloseRecord( r, nPos );
}
}
// Set overall length
SbiCloseRecord( r, nStart );
if( !SbiGood( r ) )
......
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