Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2223)

Unified Diff: dm/DM.cpp

Issue 1359833005: fix DM? (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fuse Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/StringTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | tests/StringTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698