| Index: tools/skimage_main.cpp
|
| diff --git a/tools/skimage_main.cpp b/tools/skimage_main.cpp
|
| index 107d3bfdb89cc5dd9faa26eb4e5b219dbd38c241..a6a2736e8d6852743f252c5332c52bb89ced8077 100644
|
| --- a/tools/skimage_main.cpp
|
| +++ b/tools/skimage_main.cpp
|
| @@ -484,7 +484,7 @@ int tool_main(int argc, char** argv) {
|
|
|
| SkAutoGraphics ag;
|
|
|
| - if (!FLAGS_readExpectationsPath.isEmpty()) {
|
| + if (!FLAGS_readExpectationsPath.isEmpty() && sk_exists(FLAGS_readExpectationsPath[0])) {
|
| gJsonExpectations.reset(SkNEW_ARGS(skiagm::JsonExpectationsSource,
|
| (FLAGS_readExpectationsPath[0])));
|
| }
|
|
|