JavascriptRootObjectWrapper - Log error when trying to bind sync object when IBrowserProcess is null

This commit is contained in:
amaitland
2018-05-15 12:33:42 +10:00
parent e6c909b282
commit 5ab2fc0142
@@ -30,6 +30,13 @@ namespace CefSharp
}
else
{
if (_browserProcess == nullptr)
{
LOG(ERROR) << StringUtils::ToNative("IBrowserProcess is null, unable to bind object " + obj->JavascriptName).ToString();
continue;
}
auto wrapperObject = gcnew JavascriptObjectWrapper(_browserProcess);
wrapperObject->Bind(obj, v8Value, _callbackRegistry);