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 2220ee49ba
commit 4854f4f45c
@@ -29,6 +29,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);