coverity#1169827 Explicit null dereferenced
Change-Id: Iaca51f3795341c1c834772abba340501b3fc60a3
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user