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

LibPathResolver::GetSearchLocations returning null causing exception to be thrown #35

Open
argfoo-web3 opened this issue Jul 11, 2023 · 0 comments

Comments

@argfoo-web3
Copy link

As it is possible for Assembly.GetEntryAssembly to return null in LibPathResolver::GetSearchLocations, null checking has to be done.

Code should add null handling here from:

yield return Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);

to:

var entryAssembly = Assembly.GetEntryAssembly();
if(entryAssembly != null)
{
yield return Path.GetDirectoryName(entryAssembly.Location);
}

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

1 participant