mflink3012 / spaceengineers-mod-teleportingsensors

A mod for Space Engineers that allows using sensors for teleportation.
2 stars 2 forks source link

NullReferenceException when trying to retrieve players in multiplayer #6

Open mflink3012 opened 3 years ago

mflink3012 commented 3 years ago

Exception occurred: System.NullReferenceException: Object reference not set to an instance of an object. at SpaceEngineers.Mod.TeleportingSensor.LogicComponent.<>cDisplayClass12_0.b0(IMyPlayer p) at Sandbox.Game.Multiplayer.MyPlayerCollection.VRage.Game.ModAPI.IMyPlayerCollection.GetPlayers(List'1 players, Func'2 collect) at SpaceEngineers.Mod.TeleportingSensor.LogicComponent.UpdateBeforeSimulation100() at VRage.Game.Components.MyGameLogicComponent.VRage.Game.Entity.EntityComponents.Interfaces.IMyGameLogicComponent.UpdateBeforeSimulation100(Boolean entityUpdate) at Sandbox.Game.Entities.Cube.MyFunctionalBlock.UpdateBeforeSimulation100() at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.UpdateBeforeSimulation100() at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.DispatchBeforeSimulation() at Sandbox.Game.Entities.MyEntities.UpdateBeforeSimulation() at Sandbox.Game.World.MySector.UpdateBeforeSimulation() at Sandbox.Game.World.MySession.UpdateComponents() at Sandbox.Game.World.MySession.Update(MyTimeSpan updateTime) at Sandbox.MySandboxGame.Update() at Sandbox.Engine.Platform.Game.UpdateInternal() at Sandbox.Engine.Platform.Game.RunSingleFrame() at Sandbox.Engine.Platform.FixedLoop.<>cDisplayClass11_0.b0() at Sandbox.Engine.Platform.GenericLoop.Run(VoidAction tickCallback) at Sandbox.Engine.Platform.Game.RunLoop() at Sandbox.MySandboxGame.Run(Boolean customRenderLoop, Action disposeSplashScreen) at SpaceEngineers.MyProgram.Main(String[] args)

mflink3012 commented 3 years ago

Got that issue entering a teleporter while another player was joining in multiplayer (Friends).