SubjectNerd-Unity / ReorderableInspector

Automatic reorderable lists for Unity game engine components
MIT License
485 stars 47 forks source link

A NullReferenceException error appears when dealing with UnityEvent field. #2

Closed Elezor closed 6 years ago

Elezor commented 7 years ago

Reproduction: 1.Create a public UnityEvent type field in any script. 2.Attach this script to a gameObject of the scene. 3.Popup the error.

Solution(I GUESS): Check if the object parameter is null at the first line of GetValue method.

ChemiKhazi commented 7 years ago

Thanks for the report, will look into this when I can.

ChemiKhazi commented 6 years ago

Fix was simple enough, thanks for the report.