sc/source/ui/docshell/docsh.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit b30c9626cbaab9436df776cc183770ac71c3f387
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sat Aug 20 11:01:47 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sat Aug 20 13:29:58 2022 +0200

    cid#1509238 silence Dereference null return value
    
    Change-Id: Ibb11b5e3de8c4b31fbf0e80be394778f32224555
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138581
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index 9e94fd16c8ad..1ded35299ae1 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -2614,6 +2614,7 @@ bool ScDocShell::ConvertTo( SfxMedium &rMed )
             if ( bHasMemo )
             {
                 const SfxStringItem* pNameItem = 
rMed.GetItemSet()->GetItem<SfxStringItem>( SID_FILE_NAME );
+                assert(pNameItem && "SID_FILE_NAME is required");
                 INetURLObject aDbtFile( pNameItem->GetValue(), 
INetProtocol::File );
                 aDbtFile.setExtension(u"dbt");
 

Reply via email to