menu
#7034796 Call to a member function getCompoundTag() on null

Submitted by PocketMine-MP 4.5.1

General information

Version: 4.5.1
Git commit: d641812c
Plugin involvement: Direct
Report date: 2022-06-23 13:41:02 +0000 UTC
Server uptime: 0 days 1 hours 29 minutes 37 seconds

System Information

PHP version: 8.0.13
Operating system: linux
System banner: Linux ns548060 4.15.0-161-generic #169-Ubuntu SMP Fri Oct 15 13:41:54 UTC 2021 x86_64

Error information

Warning: the PSCore plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getCompoundTag() on null
File: plugins/PSCore_v1.14.0.phar/src/PrestigeSociety/Statistics/Statistics
Line: #112
Error level: Error
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122

/**
* @param string $player
* @param Human $human
*
* @return void
*/
protected function setSkin(string $player, Human $human): void{
$data = $this->core->getServer()->getOfflinePlayerData($player);
$data = $data->getCompoundTag("Skin");

$skinData = $data->getByteArray("Data");

$capeData = $data->getByteArray("CapeData");
$geometryName = $data->getString("GeometryName");
$geometryData = $data->getByteArray("GeometryData");

$id = $human->getId();
$levelId = $human->getWorld()->getId();

#0 plugins/PSCore_v1.14.0.phar/src/PrestigeSociety/Statistics/Statistics(99): PrestigeSociety\Statistics\Statistics->setSkin(string[6] lcb919, object PrestigeSociety\Statistics\Entity\StatHuman#6866195)
#1 plugins/PSCore_v1.14.0.phar/src/PrestigeSociety/Statistics/Statistics(42): PrestigeSociety\Statistics\Statistics->load(object PrestigeSociety\Statistics\Entity\StatHuman#6866195)
#2 plugins/PSCore_v1.14.0.phar/src/PrestigeSociety/Statistics/Task/UpdateStatsTask(24): PrestigeSociety\Statistics\Statistics->updateStats()
#3 pmsrc/src/scheduler/TaskHandler(114): PrestigeSociety\Statistics\Task\UpdateStatsTask->onRun()
#4 pmsrc/src/scheduler/TaskScheduler(141): pocketmine\scheduler\TaskHandler->run()
#5 pmsrc/src/plugin/PluginManager(498): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(int 107401)
#6 pmsrc/src/Server(1811): pocketmine\plugin\PluginManager->tickSchedulers(int 107401)
#7 pmsrc/src/Server(1700): pocketmine\Server->tick()
#8 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#9 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[18] /home/bed2/prison/, string[26] /home/bed2/prison/plugins/)
#10 pmsrc/src/PocketMine(327): pocketmine\server()
#11 pmsrc(11): require(string[62] phar:///home/bed2/prison/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show