Check file name valid or not.

Change-Id: Ia122050cabf68671c27e8aef3c69ec038c790899
Reviewed-on: https://skia-review.googlesource.com/130461
Commit-Queue: Ben Wagner <bungeman@google.com>
Commit-Queue: Bruce Wang <brucewang@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
This commit is contained in:
Bruce Wang 2018-05-29 17:29:24 -04:00 committed by Skia Commit-Bot
parent cd21d676b7
commit 61f36d3225

View File

@ -439,7 +439,7 @@ DEF_TEST(Codec_incomplete, r) {
"images/mandrill.wbmp",
}) {
sk_sp<SkData> file = GetResourceAsData(name);
if (!name) {
if (!file) {
continue;
}