menu
#7304182 get_class(): Argument #1 ($object) must be of type object, null given

Submitted by PocketMine-MP 4.6.1

General information

Version: 4.6.1
Git commit: b20e0453
Plugin involvement: Direct
Report date: 2022-08-05 22:33:03 +0000 UTC
Server uptime: 0 days 0 hours 34 minutes 30 seconds

System Information

PHP version: 8.0.19
Operating system: linux
System banner: Linux e460ab07-a14b-477e-aa04-f4a4968550cc 5.13.0-1029-azure #34~20.04.1-Ubuntu SMP Thu Jun 9 12:37:07 UTC 2022 x86_64

Error information

Warning: the MineReset plugin was directly involved in this crash. Please contact the plugin author.
Message: get_class(): Argument #1 ($object) must be of type object, null given
File: plugins/MineResetFIX_fernanACM[1].phar/src/falkirks/minereset/Mine
Line: #224
Error level: TypeError
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
		}
$this->isResetting = true;

$chunks = [];
$chunkClass = Chunk::class;
for ($x = $this->getPointA()->getX(); $x - 16 <= $this->getPointB()->getX(); $x += 16) {
for ($z = $this->getPointA()->getZ(); $z - 16 <= $this->getPointB()->getZ(); $z += 16) {
$chunk = $this->getWorld()->getChunk($x >> 4, $z >> 4, true);

$chunkClass = get_class($chunk);
$chunks[World::chunkHash($x >> 4, $z >> 4)] = FastChunkSerializer::serializeTerrain($chunk);
}
}

$resetTask = new ResetTask($this->getName(), $chunks, $this->getPointA(), $this->getPointB(), $this->data, $this->getWorld()->getId(), $chunkClass);
$this->getApi()->getApi()->getServer()->getAsyncPool()->submitTask($resetTask);
}

/**
* @return int
#0 plugins/MineResetFIX_fernanACM[1].phar/src/falkirks/minereset/Mine(224): get_class(null)
#1 plugins/MineResetFIX_fernanACM[1].phar/src/falkirks/minereset/command/ResetCommand(33): falkirks\minereset\Mine->reset()
#2 plugins/MineResetFIX_fernanACM[1].phar/src/falkirks/minereset/command/MineCommand(38): falkirks\minereset\command\ResetCommand->execute(object pocketmine\player\Player#130219, string[4] mine, array[1])
#3 pmsrc/src/command/SimpleCommandMap(205): falkirks\minereset\command\MineCommand->execute(object pocketmine\player\Player#130219, string[4] mine, array[1])
#4 pmsrc/src/Server(1446): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#130219, string[15] mine reset Mine)
#5 pmsrc/src/player/Player(1410): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#130219, string[15] mine reset Mine)
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(736): pocketmine\player\Player->chat(string[16] /mine reset Mine)
#7 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(51): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#102971)
#8 pmsrc/src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#102780)
#9 pmsrc/src/network/mcpe/NetworkSession(357): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#102971, string[37] M./mine reset Mine..L.#....kq.d.I....)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[39] S......KU(J-N-Q..2....Q.z.U&..]....]...)
#11 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[48] .-.I.F..3.....S[.}.P.g.\....l..oO...|.p...%|...0)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#29665)
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#15 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1659738783.0329)
#16 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#17 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#18 pmsrc/src/PocketMine(327): pocketmine\server()
#19 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show