diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-07-04 12:29:39 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-07-04 13:31:37 +0200 |
commit | a387d3c96c414da65396957b18df3202a720e2ba (patch) | |
tree | e90a7d0e976bfd7e180d7ca867af434ce707359a /vcl/source | |
parent | 1b35b63e7bb5fd37c7db8575c55a273c59354175 (diff) |
coverity#736159 Dereference Null return
Change-Id: I6581efb320a9e43cb242dabecfd500d4e04b058b
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/gdimtf.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx index 7158d4db80c3..4fc7d3f34014 100644 --- a/vcl/source/gdi/gdimtf.cxx +++ b/vcl/source/gdi/gdimtf.cxx @@ -324,7 +324,7 @@ void GDIMetaFile::Play( GDIMetaFile& rMtf, size_t nPos ) for( size_t nCurPos = nCurrentActionElement; nCurPos < nPos; nCurPos++ ) { - if( !Hook() ) + if( !Hook() && pAction ) { pAction->Duplicate(); rMtf.AddAction( pAction ); @@ -360,7 +360,7 @@ void GDIMetaFile::Play( OutputDevice* pOut, size_t nPos ) size_t i = 0; for( size_t nCurPos = nCurrentActionElement; nCurPos < nPos; nCurPos++ ) { - if( !Hook() ) + if( !Hook() && pAction ) { MetaCommentAction* pCommentAct = static_cast<MetaCommentAction*>(pAction); if( pAction->GetType() == META_COMMENT_ACTION && |