sw/source/filter/ww8/ww8par.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit aa81005151c4c266173cf7460b4db87339c921f5
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sat Aug 27 10:33:42 2022 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sat Aug 27 12:47:39 2022 +0200

    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 <[email protected]>

diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index 18610cc41f5a..fc9d7a64d780 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -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 ) )

Reply via email to