diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-09 09:40:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-09 12:02:37 +0200 |
commit | 4cd79ec107b95ffba8f8455e07f824782eab1e34 (patch) | |
tree | 645394fc1f29f2f9e75c1a20f7ad43cf9c6d9d0d /vcl/source | |
parent | eddc280860360329a6a054710df4ac01ab98e902 (diff) |
cid#1465239 silence Explicit null deferenced
Change-Id: I35135f6522ea64d0a8d7063949cd006278ec6080
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98404
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/filter/ipdf/pdfdocument.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/filter/ipdf/pdfdocument.cxx b/vcl/source/filter/ipdf/pdfdocument.cxx index 541ec2b9a738..04c43b564b39 100644 --- a/vcl/source/filter/ipdf/pdfdocument.cxx +++ b/vcl/source/filter/ipdf/pdfdocument.cxx @@ -356,6 +356,7 @@ sal_Int32 PDFDocument::WriteAppearanceObject(tools::Rectangle& rSignatureRectang PDFObjectCopier aCopier(*this); if (!aContentStreams.empty()) { + assert(pPage && "aContentStreams is only filled if there was a pPage"); OStringBuffer aBuffer; aCopier.copyPageResources(pPage, aBuffer); aEditBuffer.WriteOString(aBuffer.makeStringAndClear()); |