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

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

Open
soraphis opened this issue Jul 13, 2022 · 0 comments

Comments

@soraphis
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant