diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-02-19 16:19:04 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-02-19 17:31:54 +0000 |
commit | 0ef4ce9b93118d18b579ae27919e304b2a4a478c (patch) | |
tree | bfc007538050637fb1d5ac7d5af54111a50379ab | |
parent | fd6a0cf1eb8441acb23f22e9e9fafc477bf4e57e (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.cxx | 2 |
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); |