Index: poppler/CairoFontEngine.cc =================================================================== RCS file: /cvs/poppler/poppler/poppler/CairoFontEngine.cc,v retrieving revision 1.23 diff -u -r1.23 CairoFontEngine.cc --- poppler/CairoFontEngine.cc 29 May 2006 18:44:17 -0000 1.23 +++ poppler/CairoFontEngine.cc 19 Aug 2006 16:45:26 -0000 @@ -352,6 +352,10 @@ font = CairoFont::create (gfxFont, xref, lib, useCIDs); //XXX: if font is null should we still insert it into the cache? + if (font==NULL) { + printf("font is NULL !\n"); + return font; + } if (fontCache[cairoFontCacheSize - 1]) { delete fontCache[cairoFontCacheSize - 1]; }