menu
#4775476 Call to a member function getId() on null

Submitted by PocketMine-MP 3.17.4

General information

Version: 3.17.4
Git commit: 2e9117d1
Plugin involvement: Direct
Report date: 2021-02-23 09:11:06 +0000 UTC
Server uptime: 0 days 3 hours 22 minutes 4 seconds

System Information

PHP version: 7.3.23
Operating system: linux
System banner: Linux 5d193a47-6199-49b6-9baf-5a6f670d2a5f 4.15.0-135-generic #139-Ubuntu SMP Mon Jan 18 17:38:24 UTC 2021 x86_64

Error information

Warning: the StairSeat plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getId() on null
File: plugins/StairSeat (1).phar/src/korado531m7/StairSeat/SeatData
Line: #70
Error level: Error
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
        return $this->block;
}

/**
* @param Position $pos
*
* @return bool
*/
public function equals(Position $pos) : bool{
return ($this->block->equals($pos) && $this->block->getLevel()->getId() === $pos->getLevel()->getId());
}

public function stand() : void{
$pk = new SetActorLinkPacket();
$pk->link = new EntityLink($this->eid, $this->player->getId(), EntityLink::TYPE_REMOVE, true, true);//TODO: Check causedByRider
$this->player->getServer()->broadcastPacket($this->player->getServer()->getOnlinePlayers(), $pk);
$pk = new RemoveActorPacket();
$pk->entityUniqueId = $this->eid;
$this->player->getServer()->broadcastPacket($this->player->getServer()->getOnlinePlayers(),$pk);
$this->player->setGenericFlag(Entity::DATA_FLAG_RIDING, false);
#0 plugins/StairSeat (1).phar/src/korado531m7/StairSeat/StairSeat(153): korado531m7\StairSeat\SeatData->equals(object pocketmine\block\SandstoneStairs)
#1 plugins/StairSeat (1).phar/src/korado531m7/StairSeat/EventListener(103): korado531m7\StairSeat\StairSeat->removeSeatDataByPosition(object pocketmine\block\SandstoneStairs)
#2 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): korado531m7\StairSeat\EventListener->onQuit(object pocketmine\event\player\PlayerQuitEvent)
#3 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object korado531m7\StairSeat\EventListener, object pocketmine\event\player\PlayerQuitEvent)
#4 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerQuitEvent)
#5 pmsrc/src/pocketmine/Player(3665): pocketmine\event\Event->call()
#6 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(176): pocketmine\Player->close(object pocketmine\lang\TranslationContainer, string[21] Internal server error)
#7 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[16] 172.18.0.1 42769, object raklib\protocol\EncapsulatedPacket, integer 0)
#8 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
#9 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
#10 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
#12 pmsrc/src/pocketmine/Server(2156): pocketmine\snooze\SleeperHandler->sleepUntil(double 1614071466.9257)
#13 pmsrc/src/pocketmine/Server(1993): pocketmine\Server->tickProcessor()
#14 pmsrc/src/pocketmine/Server(1587): pocketmine\Server->start()
#15 pmsrc/src/pocketmine/PocketMine(286): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#16 pmsrc/src/pocketmine/PocketMine(316): pocketmine\server()
#17 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show