diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-09 20:55:49 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-09 21:20:12 +0000 |
commit | e03c29f50aa057544b3b6d0b0161dd433086b228 (patch) | |
tree | 5f9479e1b7a8d999643739e6d7a02d4866504785 /sfx2 | |
parent | 5707a371d5ab36fa4794d82242512809923c2a13 (diff) |
coverity#1078732 Dereference null return value
Change-Id: I6008d2ef94979a7b2224ca217a158cbcbb1fd716
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/doctempl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx index 35cb048a568e..2ad4321e7432 100644 --- a/sfx2/source/doc/doctempl.cxx +++ b/sfx2/source/doc/doctempl.cxx @@ -1212,7 +1212,7 @@ sal_Bool SfxDocumentTemplates::GetLogicNames for ( sal_uIntPtr j=0; !bFound && (j<nChildCount); j++ ) { pEntry = pData->GetEntry( j ); - if ( pEntry->GetTargetURL() == aPath ) + if ( pEntry && pEntry->GetTargetURL() == aPath ) { bFound = sal_True; } |