Skip to content

Commit

Permalink
Fix for a crash introduced by mistake in fbc04cf (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
Havner authored Apr 16, 2023
1 parent 23e374f commit 060b714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HandheldCompanion/Managers/ProfileManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public static void UpdateOrCreateProfile(Profile profile, ProfileUpdateSource so
}

// check if this is current profile
bool isCurrent = profile.Path.Equals(currentProfile.Path, StringComparison.InvariantCultureIgnoreCase);
bool isCurrent = currentProfile is null ? false : profile.Path.Equals(currentProfile.Path, StringComparison.InvariantCultureIgnoreCase);

// refresh error code
SanitizeProfile(profile);
Expand Down

0 comments on commit 060b714

Please sign in to comment.