Skip to content

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

@argfoo-web3

Description

@argfoo-web3

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions