diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-20 10:59:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-20 13:29:40 +0200 |
commit | e6ce52bb1769c26e620f96130b9078e1de021df8 (patch) | |
tree | 3121d213a98b93372689f4c22f03afdfc6cd7aec /sfx2/source | |
parent | bdc753d06f1306877f8adfffd0f86be7a1a1f754 (diff) |
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 <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/appl/appopen.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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; |