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

coverity#735955 Explicit null dereferenced

Change-Id: Ice64f610901ae9a5ee103fa1e4fec46a1142158d
üst 4041263b
...@@ -1105,12 +1105,14 @@ bool SvXMLExportItemMapper::QueryXMLValue( ...@@ -1105,12 +1105,14 @@ bool SvXMLExportItemMapper::QueryXMLValue(
case RES_COLLAPSING_BORDERS: case RES_COLLAPSING_BORDERS:
{ {
const SfxBoolItem* pBorders = PTR_CAST(SfxBoolItem, &rItem); const SfxBoolItem* pBorders = PTR_CAST(SfxBoolItem, &rItem);
OSL_ENSURE( pBorders != NULL, "Wrong RES-ID" ); assert(pBorders); //Wrong RES-ID
if (pBorders)
aOut.append( pBorders->GetValue() {
? GetXMLToken( XML_COLLAPSING ) aOut.append( pBorders->GetValue()
: GetXMLToken( XML_SEPARATING ) ); ? GetXMLToken( XML_COLLAPSING )
bOk = true; : GetXMLToken( XML_SEPARATING ) );
bOk = true;
}
} }
break; break;
......
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