Adventure-Terraria-Server-Project / Protector-Plugin

Protector plugin for Terraria Server API and TShock.
GNU General Public License v3.0
10 stars 19 forks source link

forgotten null check? #36

Closed ghost closed 9 years ago

ghost commented 9 years ago

[Protector] Error: One PlayerSpawn event handler has thrown an unexpected exception. Exception details: System.NullReferenceException: Object reference not set to an instance of an object. at Terraria.Plugins.CoderCow.Protector.ProtectionManager.CheckProtectionAccess(ProtectionEntry protection, TSPlayer player, Boolean fullAccessRequired) at Terraria.Plugins.CoderCow.Protector.ProtectionManager.CheckBlockAccess(TSPlayer player, Point tileLocation, Boolean fullAccessRequired, ProtectionEntry& relatedProtection) at Terraria.Plugins.CoderCow.Protector.UserInteractionHandler.CheckProtected(TSPlayer player, Point tileLocation, Boolean fullAccessRequired) at Terraria.Plugins.CoderCow.Protector.UserInteractionHandler.HandlePlayerSpawn(TSPlayer player, Point spawnTileLocation) at Terraria.Plugins.CoderCow.Protector.ProtectorPlugin.Net_PlayerSpawn(Object sender, PlayerSpawnEventArgs e) at Terraria.Plugins.Common.Hooks.GetDataHookHandler.OnPlayerSpawn(PlayerSpawnEventArgs e)

CoderCow commented 9 years ago

Reopen if it still occurs.