diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-12 12:20:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-12 12:20:50 +0000 |
commit | 886f962d3a0875729d02a4ba4f169f7ab9400a42 (patch) | |
tree | ba50d937c36ac7b29cb308fe1d9081d130fb03d2 /sw | |
parent | 956de90c043ac43c21fb6043be338f50c4d7e055 (diff) |
coverity#1257108 Explicit null dereferenced
Change-Id: Ic4d9c99c8a2b994cec8828808d02a46ec6a18e2c
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/draw/dpage.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/draw/dpage.cxx b/sw/source/core/draw/dpage.cxx index ac547c5e1ed9..24f2d35b5c48 100644 --- a/sw/source/core/draw/dpage.cxx +++ b/sw/source/core/draw/dpage.cxx @@ -79,7 +79,7 @@ void SwDPage::lateInit(const SwDPage& rPage, SwDrawModel* const pNewModel) FmFormPage::lateInit( rPage, pNewModel ); SwDrawModel* pSwDrawModel = pNewModel; - if ( !pModel ) + if (!pSwDrawModel) { pSwDrawModel = &dynamic_cast<SwDrawModel&>(*GetModel()); assert( pSwDrawModel ); |