summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-02-19 16:19:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-02-19 17:31:54 +0000
commit0ef4ce9b93118d18b579ae27919e304b2a4a478c (patch)
treebfc007538050637fb1d5ac7d5af54111a50379ab
parentfd6a0cf1eb8441acb23f22e9e9fafc477bf4e57e (diff)
ofz#56123 Null-dereference
Change-Id: Id1d8c157814564dc31a7b439354fd8662d19fc07 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147301 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/gdi/regionband.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/gdi/regionband.cxx b/vcl/source/gdi/regionband.cxx
index 5a8e3676e57e..7b48df7a0966 100644
--- a/vcl/source/gdi/regionband.cxx
+++ b/vcl/source/gdi/regionband.cxx
@@ -1186,6 +1186,8 @@ bool RegionBand::CheckConsistency() const
tools::Rectangle RegionBand::GetBoundRect() const
{
+ if (!mpFirstBand)
+ return tools::Rectangle();
// get the boundaries of the first band
tools::Long nYTop(mpFirstBand->mnYTop);