coverity#1169827 Explicit null dereferenced

Change-Id: Iaca51f3795341c1c834772abba340501b3fc60a3
This commit is contained in:
Caolán McNamara
2014-02-09 15:43:56 +00:00
parent ecfeb72252
commit daf4fb951b

View File

@@ -2254,6 +2254,10 @@ sal_Int32 ImpEditEngine::SplitTextPortion( ParaPortion* pPortion, sal_Int32 nPos
}
DBG_ASSERT( pTextPortion, "Position outside the area!" );
if (!pTextPortion)
return 0;
DBG_ASSERT( pTextPortion->GetKind() == PORTIONKIND_TEXT, "SplitTextPortion: No TextPortion!" );
sal_Int32 nOverlapp = nTmpPos - nPos;