Skip to content
This repository has been archived by the owner on Nov 29, 2020. It is now read-only.

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
HMBSbige committed Jan 4, 2020
1 parent 4732575 commit 9d0247b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BilibiliApi/Utils.cs
Expand Up @@ -88,7 +88,7 @@ public static DateTime GetTime(string timeStamp)

public static bool IsToken(string token)
{
return token.Length == 32 && Regex.IsMatch(token, @"^[a-f0-9]+$");
return !string.IsNullOrEmpty(token) && token.Length == 32 && Regex.IsMatch(token, @"^[a-f0-9]+$");
}
}
}

0 comments on commit 9d0247b

Please sign in to comment.