diff --git a/libcef/renderer/v8_impl.cc b/libcef/renderer/v8_impl.cc index 898edb713..713e643cb 100644 --- a/libcef/renderer/v8_impl.cc +++ b/libcef/renderer/v8_impl.cc @@ -119,6 +119,9 @@ class CefV8TrackManager { v8::Handle object = context->Global(); v8::Handle value = object->GetHiddenValue(context_state_key_); + if (value.IsEmpty()) + return; + scoped_refptr state = static_cast(v8::External::Unwrap(value)); state->Detach();