diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-19 10:24:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-19 10:26:54 +0100 |
commit | cf309ee274fad755de1b53b40bc1d2b112f16171 (patch) | |
tree | f98091c7c62b1c66dff03dec0663d07bb1938855 /sd | |
parent | 4e6c9caf4a131baf8c1fe15267b43f22ff7c1660 (diff) |
coverity#704771 Explicit null dereferenced
Change-Id: I653866006a54f5bc73dae4614b0b9c8ddfeb4989
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/unoidl/unoobj.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/unoobj.cxx b/sd/source/ui/unoidl/unoobj.cxx index 2305df246217..bb2411be297f 100644 --- a/sd/source/ui/unoidl/unoobj.cxx +++ b/sd/source/ui/unoidl/unoobj.cxx @@ -775,9 +775,9 @@ void SAL_CALL SdXShape::setPropertyValue( const OUString& aPropertyName, const : case WID_BOOKMARK: { OUString aString; - if( pInfo ) + SdDrawDocument* pDoc = mpModel ? mpModel->GetDoc() : NULL; + if (pInfo && pDoc) { - SdDrawDocument* pDoc = mpModel?mpModel->GetDoc():NULL; // is the bookmark a page? bool bIsMasterPage; if(pDoc->GetPageByName( pInfo->GetBookmark(), bIsMasterPage ) != SDRPAGE_NOTFOUND) |