Index: src/platform/minijail/interface.cc |
diff --git a/src/platform/minijail/interface.cc b/src/platform/minijail/interface.cc |
index 4cabff067fa74297a0c9579ef89e5bfee5e5a400..7686330d296b1dd5adeadaad3119b2056e476420 100644 |
--- a/src/platform/minijail/interface.cc |
+++ b/src/platform/minijail/interface.cc |
@@ -13,7 +13,14 @@ namespace chromeos { |
namespace minijail { |
bool Interface::Run() const { |
- LOG_IF(FATAL, !options()->executable_path()) << "No executable path given."; |
+ if (!options() || !options()->env()) { |
+ LOG(ERROR) << "Initialize() not called or called with bad Env"; |
+ return false; |
+ } |
+ if (!options()->executable_path()) { |
+ LOG(ERROR) << "No executable path given."; |
+ return false; |
+ } |
return options()->env()->Run(options()->executable_path(), |
options()->arguments(), |
options()->environment()); |