Index: content/common/sandbox_mac_unittest_helper.mm |
diff --git a/content/common/sandbox_mac_unittest_helper.mm b/content/common/sandbox_mac_unittest_helper.mm |
index 3b0345d05d80171a6c5ad6d7b1f637f010610bd6..89a29cdfca4de52a859437b9ea1a891785470dc4 100644 |
--- a/content/common/sandbox_mac_unittest_helper.mm |
+++ b/content/common/sandbox_mac_unittest_helper.mm |
@@ -148,7 +148,8 @@ MULTIPROCESS_TEST_MAIN(mac_sandbox_test_runner) { |
LOG(ERROR) << "Invalid sandbox test name (" << sandbox_test_name << ")"; |
return -1; |
} |
- test_case->SetTestData(test_data); |
+ if (test_data) |
+ test_case->SetTestData(test_data); |
// Run Test. |
if (!test_case->BeforeSandboxInit()) { |