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

coverity#1209588 Explicit null dereferenced

Change-Id: I6abb408c91c9d6ea2d60c328be221c7608a7906c
üst 304d9066
......@@ -152,7 +152,7 @@ void SvXMLExportItemMapper::exportXML( const SvXMLExport& rExport,
const SvXMLAttrContainerItem *pUnknown =
PTR_CAST( SvXMLAttrContainerItem, &rItem );
const sal_uInt16 nCount = pUnknown->GetAttrCount();
const sal_uInt16 nCount = pUnknown ? pUnknown->GetAttrCount() : 0;
for( sal_uInt16 i=0; i < nCount; i++ )
{
const OUString sPrefix( pUnknown->GetAttrPrefix( i ) );
......
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