diff --git a/libcef/cef_context.cc b/libcef/cef_context.cc index a04bdbe0e..e6488748f 100644 --- a/libcef/cef_context.cc +++ b/libcef/cef_context.cc @@ -343,7 +343,10 @@ void UIT_SetStoragePath(int64 namespace_id, const CefString& path) if (!path.empty()) file_path = FilePath(path); - _Context->storage_context()->SetLocalStoragePath(file_path); + DOMStorageContext* context = _Context->storage_context(); + DCHECK(context); + if (context) + context->SetLocalStoragePath(file_path); } } // anonymous