Closed bungeman closed 2 years ago
If the image data passed to SkCodec::MakeFromData is not recognized as image data the SkCodec::MakeFromData may return nullptr. Check for this failure and return instead of crashing.
Thanks for the patch @bungeman . LGTM.
If the image data passed to SkCodec::MakeFromData is not recognized as image data the SkCodec::MakeFromData may return nullptr. Check for this failure and return instead of crashing.