Skip to content

System.NullReferenceException:“Object reference not set to an instance of an object.” #6

@AmberHan

Description

@AmberHan

Plist.Deserialize<SomeClass>(plistdata);
class SomeClass
{
[PlistProperty("QueryResponses")] public QueryResponses? QueryResponses { get; set; }
[PlistProperty("Status")] public string? Status { get; set; }
}
System.NullReferenceException:“Object reference not set to an instance of an object.
because the object QueryResponses may or may not have;

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