Skip to content

NPC._convertFieldValue can error out for certain values #56

@derikb

Description

@derikb

NPC._convertFieldValue falls back from a few simple types to checking className property, but fails to first confirm a) that the value is an object b) that is has the className property.

I think the issue came up in some code when NPCSchemaField.defaultEmpty returned null, which doesn't fit any of the branches in _convertFieldValue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions