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

Bug: GetSourceExtension & GetFormatterExtension throw exception when a value could not be found #136

Closed
karljj1 opened this issue Dec 7, 2020 · 1 comment
Labels

Comments

@karljj1
Copy link
Collaborator

karljj1 commented Dec 7, 2020

The documents says Returns null if the type cannot be found. however an exception is thrown InvalidOperationException: Sequence contains no elements. This is because you are using First when you should be using FirstOrDefault.

@axunonb
Copy link
Member

axunonb commented Dec 7, 2020

Time to enable Nullable for the project

@axunonb axunonb added the Bug label Dec 7, 2020
@axunonb axunonb closed this as completed in 023f046 Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants