Kaydet (Commit) 7b1c0188 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1158080 Dereference after null check

Change-Id: I708977778bcd6d488d8f61703acbe90c62f6f2e4
üst d93c204f
......@@ -3421,8 +3421,10 @@ sal_uInt16 SwTxtNode::GetLang( const sal_Int32 nBegin, const sal_Int32 nLen,
const sal_Int32 *pEndIdx = pHt->End();
// Ueberlappt das Attribut den Bereich?
if( pEndIdx &&
nLen ? ( nAttrStart < nEnd && nBegin < *pEndIdx )
if (!pEndIdx)
continue;
if( nLen ? ( nAttrStart < nEnd && nBegin < *pEndIdx )
: (( nAttrStart < nBegin &&
( pHt->DontExpand() ? nBegin < *pEndIdx
: nBegin <= *pEndIdx )) ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment