Skip to content

Commit f4d6a9f

Browse files
authored
Merge pull request #23 from marc-antoine-girard/#21-Fix-NullReferenceException-RawReferenceDrawer
2 parents 648cd8d + 8371e1f commit f4d6a9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Editor/Drawers/RawReferenceDrawer.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ public void OnGUI(Rect position)
9191
/// <inheritdoc />
9292
protected override void OnPropertiesClicked()
9393
{
94+
if (RawReferenceValue == null)
95+
return;
96+
9497
Type type = RawReferenceValue.GetType();
9598
string typeName = type.Name;
9699

0 commit comments

Comments
 (0)