coverity#735881 Dereference after null check

Change-Id: I2fd45dd0ab1e0bedca7e827886949beb3f494cad
This commit is contained in:
Caolán McNamara
2014-07-01 16:21:48 +01:00
parent 0820f53c0d
commit 485a7c880f

View File

@@ -1750,7 +1750,7 @@ SdrTableObj& SdrTableObj::operator=(const SdrTableObj& rObj)
bNoMirror = rObj.bNoMirror;
bDisableAutoWidthOnDragging = rObj.bDisableAutoWidthOnDragging;
if( rObj.mpImpl )
if (mpImpl && rObj.mpImpl)
*mpImpl = *rObj.mpImpl;
return *this;
}