sfx2/source/appl/appopen.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit e6ce52bb1769c26e620f96130b9078e1de021df8 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sat Aug 20 10:59:31 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sat Aug 20 13:29:40 2022 +0200
cid#1509221 silence Dereference null return value Change-Id: I28c5479106e6521f52ec25d98c3ae0565fc1596b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138579 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx index 1c854b9d9424..3d554b3cb816 100644 --- a/sfx2/source/appl/appopen.cxx +++ b/sfx2/source/appl/appopen.cxx @@ -778,6 +778,7 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq ) } const SfxStringItem* pFileName = rReq.GetArg<SfxStringItem>(SID_FILE_NAME); + assert(pFileName && "SID_FILE_NAME is required"); OUString aFileName = pFileName->GetValue(); OUString aReferer;