| Index: tests/ColorSpaceTest.cpp
|
| diff --git a/tests/ColorSpaceTest.cpp b/tests/ColorSpaceTest.cpp
|
| index 37785e238b8b6c93938e85a8bea7209b6591e2c1..0774a095a7c7f65d6886b55af27a76b883f96653 100644
|
| --- a/tests/ColorSpaceTest.cpp
|
| +++ b/tests/ColorSpaceTest.cpp
|
| @@ -57,9 +57,15 @@ DEF_TEST(ColorSpaceParsePngICCProfile, r) {
|
| DEF_TEST(ColorSpaceParseJpegICCProfile, r) {
|
| SkAutoTDelete<SkStream> stream(resource("icc-v2-gbr.jpg"));
|
| REPORTER_ASSERT(r, nullptr != stream);
|
| + if (!stream) {
|
| + return;
|
| + }
|
|
|
| SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(stream.release()));
|
| REPORTER_ASSERT(r, nullptr != codec);
|
| + if (!codec) {
|
| + return;
|
| + }
|
|
|
| SkColorSpace* colorSpace = codec->getColorSpace();
|
| REPORTER_ASSERT(r, nullptr != colorSpace);
|
|
|