diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-07 20:55:10 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-08 01:21:24 -0600 |
commit | 2ad11da98a327099894db526c36cdf2cdb0d7ae2 (patch) | |
tree | 8f563f67f536c6cf11836369e2981d914c7e651a /sd | |
parent | 7feb0958ffa5b4d77665d17cd5cc0a9f4460341f (diff) |
coverity#704675 Unchecked dynamic_cast
Change-Id: I50570ba37733ae700dca96e1175fcd2ac0c97333
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx b/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx index fb188d69eafb..fc83c9287f84 100644 --- a/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx +++ b/sd/source/ui/slidesorter/cache/SlsBitmapCompressor.cxx @@ -145,7 +145,7 @@ Bitmap ResolutionReduction::Decompress (const BitmapReplacement& rBitmapData) co const ResolutionReducedReplacement* pData ( dynamic_cast<const ResolutionReducedReplacement*>(&rBitmapData)); - if ( ! pData->maPreview.IsEmpty()) + if ( pData && ! pData->maPreview.IsEmpty()) { aResult = pData->maPreview; if (pData->maOriginalSize.Width() > mnWidth) |