Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullReferenceException from SchemeHandlerFactoryWrapper.Create #1790

Closed
justin-caldicott opened this issue Sep 1, 2016 · 5 comments
Closed
Milestone

Comments

@justin-caldicott
Copy link
Contributor

justin-caldicott commented Sep 1, 2016

  • What version of the product are you using?

49.0.1 via NuGet.

  • What architecture x86 or x64?

x86

  • On what operating system?

Win10

  • Are you using WinForms, WPF or OffScreen?

WinForms

  • What steps will reproduce the problem?

Return null from a custom implementation of ISchemeHandlerFactory.Create

https://gist.github.com/justin-caldicott/c20bbd011c250d9f6d226d598cb2b9ff

  • What is the expected output? What do you see instead?

This previously allowed default CEF handling to occur. We were using it for requests to third party services such as Mapbox.

It now throws a NullReferenceException.

  • Please provide any additional information below.

Looks like it was broken in this commit:
12f4233#diff-e8faa1453883ff4c7ab38a74eac0b01eL40

When an if block was removed. It was OK in 47.0.2.

Adding back the if block, with just the return null, fixes it for me:
bluebirdtech@7a2d789

Not tried it. I expect this fix to be straight forward to apply, but let me know if you need more detail.

@amaitland
Copy link
Member

@justin-caldicott By all means submit a PR targeted against master

49.0.1 via NuGet.

For reference this version is no longer supported.

@justin-caldicott
Copy link
Contributor Author

Thanks @amaitland I'll do that. Needed to patch 49.0.1 as we're not able to jump to .NET 4.5 just yet.

@amaitland
Copy link
Member

No problem, you'll have to build your own packages.

@justin-caldicott
Copy link
Contributor Author

That's fine I've done that already. Thanks for doing such a great job BTW building locally was very straight forward!

@amaitland
Copy link
Member

Resolved with #1792

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants