Index: dm/DM.cpp |
diff --git a/dm/DM.cpp b/dm/DM.cpp |
index f47640899d6a43f6b02d62193ab3520735194d2e..73dbc27e56f3ec553b6df0e5dbdb0438253d48ce 100644 |
--- a/dm/DM.cpp |
+++ b/dm/DM.cpp |
@@ -164,6 +164,11 @@ static SkTHashSet<SkString> gUninterestingHashes; |
static void gather_uninteresting_hashes() { |
if (!FLAGS_uninterestingHashesFile.isEmpty()) { |
SkAutoTUnref<SkData> data(SkData::NewFromFileName(FLAGS_uninterestingHashesFile[0])); |
+ if (!data) { |
+ SkDebugf("WARNING: unable to read uninteresting hashes from %s\n", |
+ FLAGS_uninterestingHashesFile[0]); |
+ return; |
+ } |
SkTArray<SkString> hashes; |
SkStrSplit((const char*)data->data(), "\n", &hashes); |
for (const SkString& hash : hashes) { |