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

coverity#1396675 Dereference null return value

Change-Id: I5280ae6021b1a1d905c8e4af69b1342df4a69aa8
üst 6a80d33b
......@@ -902,9 +902,12 @@ int PrintFontManager::getFontFaceNumber( fontID nFontID ) const
{
int nRet = 0;
PrintFont* pFont = getFont( nFontID );
nRet = pFont->m_nCollectionEntry;
if (nRet < 0)
nRet = 0;
if (pFont)
{
nRet = pFont->m_nCollectionEntry;
if (nRet < 0)
nRet = 0;
}
return nRet;
}
......
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