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

coverity#1209587 Explicit null dereferenced

Change-Id: I51b3e9bccbe54686fbe869ce5ba669d000530572
üst 148b9a23
......@@ -132,8 +132,8 @@ void SvXMLExportItemMapper::exportXML( const SvXMLExport& rExport,
{
OUStringBuffer aOut;
const SfxBoolItem* pSplit = PTR_CAST(SfxBoolItem, &rItem);
OSL_ENSURE( pSplit != NULL, "Wrong Which-ID" );
const unsigned int eEnum = pSplit->GetValue() ? 1 : 0;
assert(pSplit); //Wrong Which-ID
const unsigned int eEnum = (pSplit && pSplit->GetValue()) ? 1 : 0;
rUnitConverter.convertEnum( aOut, eEnum, aXML_KeepTogetherType );
aValue = aOut.makeStringAndClear();
}
......
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