mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
Fix NRE when returning null from a scheme handler factory (#1792)
Regression in 49.0 release. Prevented use of default CEF handler when using a custom scheme handler.
This commit is contained in:
committed by
Alex Maitland
parent
31b1dd97eb
commit
8f02008c58
@@ -39,6 +39,11 @@ namespace CefSharp
|
||||
|
||||
auto handler = _factory->Create(%browserWrapper, %frameWrapper, StringUtils::ToClr(schemeName), %requestWrapper);
|
||||
|
||||
if (handler == nullptr)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (handler->GetType() == ResourceHandler::typeid)
|
||||
{
|
||||
auto resourceHandler = static_cast<ResourceHandler^>(handler);
|
||||
|
||||
Reference in New Issue
Block a user