diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 20:56:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-03 09:07:56 +0100 |
commit | c7ee74cedaaac2951849852546d653ee8c4c4135 (patch) | |
tree | 7a7ef2eee02bda6deeb1da6b16450cced380bb30 /vcl/source/gdi | |
parent | 6b1d355988c0c51e3c6d8acd32184d79a8ea5011 (diff) |
coverity#1093225 Dereference after null check
Change-Id: I34a7b79b4a7b5d86c3d39fd995ed3bd998eeeab8
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r-- | vcl/source/gdi/pngread.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx index 8a17b16f554a..2bbfede76210 100644 --- a/vcl/source/gdi/pngread.cxx +++ b/vcl/source/gdi/pngread.cxx @@ -1619,6 +1619,8 @@ void PNGReaderImpl::ImplSetAlphaPixel( sal_uInt32 nY, sal_uInt32 nX, nX >>= mnPreviewShift; mpAcc->SetPixel( nY, nX, rBitmapColor ); + if (!mpMaskAcc) + return; mpMaskAcc->SetPixelIndex( nY, nX, ~nAlpha ); } |