Skip to content

Provide more console details on how to correct 'System.NullReferenceException: Object reference not set to an instance of an object.' #23

@ddemeyer

Description

@ddemeyer

While debugging 'System.NullReferenceException: Object reference not set to an instance of an object.' at XmlDoc2CmdletDoc.Core.Domain.Command.<>c.<get_OutputTypes> I eventually found the culprit to be the OutputType attribute on my cmdlet [OutputType(nameof(SomeObject))].

Removing it resolved it for now. It would be nice to know on which cmdlet, property or attribute it fails to easily correct the situation. At least the above will give guidance to others.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions