Skip to content

Commit

Permalink
fix: NRE in MovementBadgesSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrade-dcl committed Oct 1, 2024
1 parent 8e74756 commit c0d6117
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected override void Update(float t)

private void HandleIdentityChange()
{
if (!currentIdentity!.Address.Equals(identityCache.Identity.Address))
if (currentIdentity == null || !currentIdentity.Address.Equals(identityCache.Identity.Address))
{
currentIdentity = identityCache.Identity;
badgeHeightReached = false;
Expand Down

0 comments on commit c0d6117

Please sign in to comment.