aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ExifTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ExifTest.cpp')
-rw-r--r--tests/ExifTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ExifTest.cpp b/tests/ExifTest.cpp
index c49de0f6fe..7fcd8b861d 100644
--- a/tests/ExifTest.cpp
+++ b/tests/ExifTest.cpp
@@ -17,6 +17,10 @@ static SkStreamAsset* resource(const char path[]) {
DEF_TEST(ExifOrientation, r) {
SkAutoTDelete<SkStream> stream(resource("exif-orientation-2-ur.jpg"));
REPORTER_ASSERT(r, nullptr != stream);
+ if (!stream) {
+ return;
+ }
+
SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(stream.release()));
REPORTER_ASSERT(r, nullptr != codec);
SkCodec::Origin origin = codec->getOrigin();