summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-28 13:33:32 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-28 14:30:40 +0000
commitbaa57e5e50805a90519e2e480cfb3e0a6c2afee9 (patch)
tree09628a1db97675029a91e8a70a567ff42a4ad7a4
parent40606287d0cc48dd5ff2d98a310a1b56ca5ed388 (diff)
coverity#705900 Dereference before null check
Change-Id: I523aa738d4a15395f708aafa9edd266e5717421e
-rw-r--r--svx/source/svdraw/svdograf.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx
index 58955ef4b738..00f28e30b6c4 100644
--- a/svx/source/svdraw/svdograf.cxx
+++ b/svx/source/svdraw/svdograf.cxx
@@ -1454,7 +1454,7 @@ Reference< XInputStream > SdrGrafObj::getInputStream()
if( pModel )
{
// can be loaded from the original document stream later
- if( pGraphic->HasUserData() )
+ if( pGraphic && pGraphic->HasUserData() )
{
::comphelper::LifecycleProxy proxy;
xStream.set(