Index: tests/KtxTest.cpp |
diff --git a/tests/KtxTest.cpp b/tests/KtxTest.cpp |
index 83a3546bec18281f134a0433dcaebb9704b9dad7..bddd09abbfe005665546eb4522237ce2bf49e50e 100644 |
--- a/tests/KtxTest.cpp |
+++ b/tests/KtxTest.cpp |
@@ -147,6 +147,9 @@ DEF_TEST(KtxReexportPKM, reporter) { |
SkBitmap etcBitmap; |
SkAutoTUnref<SkData> fileData(SkData::NewFromFileName(pkmFilename.c_str())); |
REPORTER_ASSERT(reporter, NULL != fileData); |
+ if (NULL == fileData) { |
+ return; |
+ } |
bool installDiscardablePixelRefSuccess = |
SkInstallDiscardablePixelRef( |