vcl/source/filter/ipdf/pdfdocument.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit 4cd79ec107b95ffba8f8455e07f824782eab1e34 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Jul 9 09:40:50 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Jul 9 12:02:37 2020 +0200 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 <caol...@redhat.com> 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()); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits