The exception name is misleading, the real exception that triggers this exception is the null reference exception. Here is the log
Here is the relevant code
Code: Select all
public void OnStartup()
{
ScriptHelper.LogDebug("OnStartup()");
BotManager.Initialize(); // code inside this method will throw exception
}
Code: Select all
// somewhere in Initialize()
private Bot(IPlayer player)
{
ScriptHelper.LogDebug("Before crash", player == null);
InfectTeam = player.GetTeam();
ScriptHelper.LogDebug("After crash", player == null);
}