diff --git a/CefSharp.Core/SchemeHandlerFactoryWrapper.h b/CefSharp.Core/SchemeHandlerFactoryWrapper.h index d2d7a1af8..098491d82 100644 --- a/CefSharp.Core/SchemeHandlerFactoryWrapper.h +++ b/CefSharp.Core/SchemeHandlerFactoryWrapper.h @@ -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(handler);