vcl/source/pdf/PdfConfig.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 9ae7a09f8678258bde65f4634461c9b64e38eb39 Author: Caolán McNamara <[email protected]> AuthorDate: Tue Dec 23 10:24:45 2025 +0000 Commit: Xisco Fauli <[email protected]> CommitDate: Wed Dec 24 12:19:52 2025 +0100 ofz#471087908 Null-dereference READ Change-Id: Ibfa1947bae59feb6460997fb6966228a85a048e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196158 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> (cherry picked from commit f1b58e691ee24a6a0f75607e39f0c978f09d0b0d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196180 Reviewed-by: Xisco Fauli <[email protected]> diff --git a/vcl/source/pdf/PdfConfig.cxx b/vcl/source/pdf/PdfConfig.cxx index 0e6a0436033d..777c2354311b 100644 --- a/vcl/source/pdf/PdfConfig.cxx +++ b/vcl/source/pdf/PdfConfig.cxx @@ -29,7 +29,8 @@ double getDefaultPdfResolutionDpi() } // Fallback to a sensible default. - return Application::GetDefaultDevice()->GetDPIX(); + OutputDevice* pDefault = Application::GetDefaultDevice(); + return pDefault ? pDefault->GetDPIX() : 96.0; } }
