| Index: tests/ColorSpaceTest.cpp
|
| diff --git a/tests/ColorSpaceTest.cpp b/tests/ColorSpaceTest.cpp
|
| index 0774a095a7c7f65d6886b55af27a76b883f96653..313eed86f118a9b9632f4c514baa5e21813dc801 100644
|
| --- a/tests/ColorSpaceTest.cpp
|
| +++ b/tests/ColorSpaceTest.cpp
|
| @@ -24,6 +24,9 @@ static bool almost_equal(float a, float b) {
|
| DEF_TEST(ColorSpaceParsePngICCProfile, r) {
|
| SkAutoTDelete<SkStream> stream(resource("color_wheel_with_profile.png"));
|
| REPORTER_ASSERT(r, nullptr != stream);
|
| + if (!stream) {
|
| + return;
|
| + }
|
|
|
| SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(stream.release()));
|
| REPORTER_ASSERT(r, nullptr != codec);
|
|
|