Skip to content
Permalink
Browse files

Fix /autorankcheck with no name causing NullReference (Thanks 123DMWM)

  • Loading branch information...
UnknownShadow200 committed Nov 15, 2017
1 parent 0a79f4c commit e09007af289ffae13aebb94560440aee8744e7ac
Showing with 5 additions and 0 deletions.
  1. +5 −0 fCraft/Commands/MaintenanceCommands.cs
@@ -1389,6 +1389,11 @@ static void SaveHandler(Player player, CommandReader cmd)

static void AutoRankCheckHandler( Player player, CommandReader cmd ) {
string name = cmd.Next();
if( name == null ) {
CdAutoRankCheck.PrintUsage(player);
return;
}

PlayerInfo info = PlayerDB.FindPlayerInfoOrPrintMatches( player, name, SearchOptions.IncludeSelf );
if( info == null ) return;

0 comments on commit e09007a

Please sign in to comment.
You can’t perform that action at this time.