Open Tommigun1980 opened 2 years ago
https://github.com/Deadcows/MyBox/blob/fe4c8172b27e4b689b14380fe6ab09fe396db328/Extensions/EditorExtensions/MySerializedProperty.cs#L97 calls https://github.com/Deadcows/MyBox/blob/fe4c8172b27e4b689b14380fe6ab09fe396db328/Extensions/EditorExtensions/MySerializedProperty.cs#L142 which can return null, while https://github.com/Deadcows/MyBox/blob/3b3355efdbbf58a64a16cd0c451c31c05c02bdb1/Attributes/ConditionalFieldAttribute.cs#L234 doesn't check for null, hence the crash. There may be other places also assuming GetValue() to always return a value, but I didn't check.
Version: 1.7.0
The code invoking the draw is:
And the object my editor is drawing is heavily using
attributes.
Thank you.