Skip to content

Commit

Permalink
chore: fix NRE
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunderscore committed Dec 27, 2023
1 parent 56392ca commit 19f91bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/ErrorReporting/UI/ErrorReportWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private void SetupSelector()

var placeholder = rootVisualElement.Q<Label>("avatar-header-placeholder-label");
placeholder.style.display = DisplayStyle.Flex;
placeholder.text = "Avatar: " + (_report.AvatarName ?? _avatarRoot.name ?? "<???>");
placeholder.text = "Avatar: " + (_report?.AvatarName ?? (_avatarRoot != null ? _avatarRoot.name : "<???>"));
#endif
}

Expand Down

0 comments on commit 19f91bc

Please sign in to comment.