Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

UnityEventCompactDrawer throwing null reference exception for lists with 0 events #29

Description

@soraphis

element in this line:
https://github.com/neon-age/Smart-Inspector/blob/main/Drawers/UnityEventCompactDrawer.cs#L272

is null, when m_ListenersArray.arraySize == 0

adding

        if (m_ListenersArray.arraySize == 0)
            return 0;

solves the issue for me

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