coverity#704947 Dereference after null check
Change-Id: Iff2a146e217bb6953525ee86ddc84d8c134ab8aa
This commit is contained in:
@@ -928,6 +928,7 @@ void SwCntntNode::Modify( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewV
|
|||||||
switch( nWhich )
|
switch( nWhich )
|
||||||
{
|
{
|
||||||
case RES_OBJECTDYING :
|
case RES_OBJECTDYING :
|
||||||
|
if (pNewValue)
|
||||||
{
|
{
|
||||||
SwFmt * pFmt = (SwFmt *) ((SwPtrMsgPoolItem *)pNewValue)->pObject;
|
SwFmt * pFmt = (SwFmt *) ((SwPtrMsgPoolItem *)pNewValue)->pObject;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user