mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Guard against null onDir function result
This commit is contained in:
@@ -128,8 +128,11 @@ bool Native::Execute(const CefString& name,
|
||||
args.push_back(CefV8Value::CreateString(relative));
|
||||
if (isFile)
|
||||
onFile->ExecuteFunction(onFile, args);
|
||||
else if (!onDir->ExecuteFunction(onDir, args)->GetBoolValue())
|
||||
else {
|
||||
CefRefPtr<CefV8Value> enterDir = onDir->ExecuteFunction(onDir, args);
|
||||
if(enterDir != NULL && !enterDir->GetBoolValue())
|
||||
fts_set(tree, entry, FTS_SKIP);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user