From 2c771d597f0afcdfa1c246877e57d49ae637fe01 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 12 Jun 2018 13:10:30 +0100 Subject: forcepoint#41 assert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I4e5ce65593fed5ddeeb972af8c736535ca9d2298 Reviewed-on: https://gerrit.libreoffice.org/55682 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- drawinglayer/source/texture/texture3d.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drawinglayer/source/texture/texture3d.cxx b/drawinglayer/source/texture/texture3d.cxx index 0dac447ccf50..fc6232022692 100644 --- a/drawinglayer/source/texture/texture3d.cxx +++ b/drawinglayer/source/texture/texture3d.cxx @@ -90,7 +90,8 @@ namespace drawinglayer mpReadTransparence = Bitmap::ScopedReadAccess(maTransparence); } - mpReadBitmap = Bitmap::ScopedReadAccess(maBitmap); + if (!!maBitmap) + mpReadBitmap = Bitmap::ScopedReadAccess(maBitmap); SAL_WARN_IF(!mpReadBitmap, "drawinglayer", "GeoTexSvxBitmapEx: Got no read access to Bitmap"); if (mpReadBitmap) { -- cgit