From af10e2c530fd4df2d9e4efa3c890c31a22852660 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 13 May 2017 23:42:20 +0200 Subject: [PATCH] small stability fix --- plugins/MCTeam/LocalRecordsPlugin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/MCTeam/LocalRecordsPlugin.php b/plugins/MCTeam/LocalRecordsPlugin.php index 059c572b..8d16ec5d 100644 --- a/plugins/MCTeam/LocalRecordsPlugin.php +++ b/plugins/MCTeam/LocalRecordsPlugin.php @@ -386,6 +386,10 @@ class LocalRecordsPlugin implements CallbackListener, CommandListener, TimerList $player = $structure->getPlayer(); + if(!$player){ //TODO verify why this can happen + return; + } + $checkpointsString = $this->getCheckpoints($player->login); $this->checkpoints[$player->login] = array();