Skip to content

Commit

Permalink
Added null check to playtime
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlOfDuty committed Feb 15, 2024
1 parent 7932f9d commit 1a70dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SCPDiscordPlugin/PlayTime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public static bool TryGetHours(string userID, out string hours)
{
hours = "0.0";

if (userID == null)
if (userID == null || playtimeData == null)
{
return false;
}
Expand Down

0 comments on commit 1a70dd2

Please sign in to comment.