Index: experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.cpp |
=================================================================== |
--- experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.cpp (revision 10423) |
+++ experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.cpp (working copy) |
@@ -504,12 +504,12 @@ |
SkASSERT(!(id < 0 || id > fObjects.count())); |
- if (id < 0 || id > fObjects.count()) { |
+ // TODO(edisonn): verify id and gen expected |
+ if (id < 0 || id >= fObjects.count()) { |
+ // TODO(edisonn): report error/warning |
return NULL; |
} |
- // TODO(edisonn): verify id and gen expected |
- |
if (fObjects[id].fResolvedReference != NULL) { |
return fObjects[id].fResolvedReference; |
} |