Skip to content

Commit

Permalink
Fix nre when returning null from a scheme handler factory
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-caldicott committed Aug 31, 2016
1 parent ab6f0bf commit 7a2d789
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CefSharp.Core/SchemeHandlerFactoryWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7a2d789

Please sign in to comment.