diff --git a/Editor/Drawers/RawReferenceDrawer.cs b/Editor/Drawers/RawReferenceDrawer.cs index 5390f06..1e1f4ca 100644 --- a/Editor/Drawers/RawReferenceDrawer.cs +++ b/Editor/Drawers/RawReferenceDrawer.cs @@ -91,6 +91,9 @@ public void OnGUI(Rect position) /// protected override void OnPropertiesClicked() { + if (RawReferenceValue == null) + return; + Type type = RawReferenceValue.GetType(); string typeName = type.Name;