cid#1500516 Explicit null dereferenced

Change-Id: I3fda15451e55d4ee1b296cddb1f6933d81faae3f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138924
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2022-08-27 10:33:42 +01:00
parent 97622503fe
commit aa81005151

View file

@ -264,8 +264,8 @@ void SwWW8ImplReader::ReadEmbeddedData(SvStream& rStrm, SwDocShell const * pDocS
{
xLongName.reset(new OUString(read_uInt16s_ToOUString(rStrm, nStrLen - 1)));
rStrm.SeekRel(sizeof(sal_Unicode)); // skip null-byte at end
lclGetAbsPath( *xLongName, 0 , pDocShell);
}
lclGetAbsPath( *xLongName, 0 , pDocShell);
}
// file link or URL
else if( ::get_flag( nFlags, WW8_HLINK_BODY ) )