Skip to content

DependencyContext null #8

Description

@dsjohnston

Using an application that is .netfull only (UI or UnitTest), one can get a NULL DependencyContext. causing the 'Init' function to throw an NullReferenceException. This occurs due to the lack of a manifest file.

Consider null check + warning: "return context == null ? new List() : context"

return context.RuntimeLibraries

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions