Index: experimental/PdfViewer/SkPdfFont.cpp |
=================================================================== |
--- experimental/PdfViewer/SkPdfFont.cpp (revision 10286) |
+++ experimental/PdfViewer/SkPdfFont.cpp (working copy) |
@@ -197,7 +197,7 @@ |
// TODO(edisonn): perf - make a map |
for (unsigned int i = 0 ; i < doc->objects(); i++) { |
SkPdfObject* obj = doc->object(i); |
- if (!obj->isDictionary()) { |
+ if (!obj || !obj->isDictionary()) { |
continue; |
} |