menu
#5039021 Call to a member function getBlock() on null

Submitted by PocketMine-MP 3.22.0

General information

Version: 3.22.0
Git commit: c32c2146
Plugin involvement: Direct
Report date: 2021-07-22 07:55:37 +0000 UTC
Server uptime: 0 days 5 hours 33 minutes 42 seconds

System Information

PHP version: 8.0.7
Operating system: linux
System banner: Linux Shosting 4.15.0-147-generic #151-Ubuntu SMP Fri Jun 18 19:21:19 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 getBlock() on null
File: plugins/StairSeat_v1.5.10.phar/src/korado531m7/StairSeat/StairSeat
Line: #154
Error level: Error
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
        foreach($this->seatData as $seatDatum)
if($seatDatum->equals($pos))
return $seatDatum;
return null;
}

public function removeSeatDataByPosition(Position $pos) : bool{
$level = $pos->getLevel();
foreach($this->seatData as $key => $seatDatum)
if($level->getBlock($pos) instanceof Stair){
if($seatDatum->equals($pos)){
$seatDatum->stand();
unset($this->seatData[$key]);
return true;
}
}
return false;
}

/**
#0 plugins/StairSeat_v1.5.10.phar/src/korado531m7/StairSeat/EventListener(106): korado531m7\StairSeat\StairSeat->removeSeatDataByPosition(object pocketmine\block\CobblestoneStairs)
#1 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): korado531m7\StairSeat\EventListener->onQuit(object pocketmine\event\player\PlayerQuitEvent)
#2 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object korado531m7\StairSeat\EventListener, object pocketmine\event\player\PlayerQuitEvent)
#3 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerQuitEvent)
#4 pmsrc/src/pocketmine/Player(3713): pocketmine\event\Event->call()
#5 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(176): pocketmine\Player->close(object pocketmine\lang\TranslationContainer, string[21] Internal server error)
#6 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[19] 13.250.45.122 50486, object raklib\protocol\EncapsulatedPacket, integer 0)
#7 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
#8 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
#9 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
#10 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
#11 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1626940536.0245)
#12 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#13 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#14 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[11] /root/acid/, string[19] /root/acid/plugins/)
#15 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#16 pmsrc(11): require(string[66] phar:///root/acid/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show