Index: tests/PDFInvalidBitmapTest.cpp |
diff --git a/tests/PDFInvalidBitmapTest.cpp b/tests/PDFInvalidBitmapTest.cpp |
index c9685f789341b85cb871261dc065336bfcb4518a..10292bdb5ff3d0040f073ae31fadb223c67b687e 100644 |
--- a/tests/PDFInvalidBitmapTest.cpp |
+++ b/tests/PDFInvalidBitmapTest.cpp |
@@ -43,9 +43,12 @@ SkBitmap make_invalid_bitmap(SkColorType colorType) { |
} // namespace |
-DEF_TEST(PDFInvalidBitmap, reporter) { |
+DEF_TEST(SkPDF_InvalidBitmap, reporter) { |
SkDynamicMemoryWStream stream; |
sk_sp<SkDocument> document(SkDocument::MakePDF(&stream)); |
+ if (!document) { |
+ return; |
+ } |
SkCanvas* canvas = document->beginPage(100, 100); |
canvas->drawBitmap(SkBitmap(), 0, 0); |