menu
#4657051 Call to a member function getRarity() on null

Submitted by PocketMine-MP 4.0.0+dev

General information

Version: 4.0.0+dev
Git commit: 4520e425
Plugin involvement: Direct
Report date: 2020-11-22 05:02:32 +0000 UTC

System Information

PHP version: 7.4.11
Operating system: linux
System banner: Linux ns556347 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64

Error information

Warning: the NexusPrison plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getRarity() on null
File: plugins/NexusPrison.phar/src/core/player/DataSession
Line: #337
Error level: Error
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
                $this->quests = Utils::decodeArray($quests);
$simple = [];
$uncommon = [];
$elite = [];
$ultimate = [];
$legendary = [];
$godly = [];
foreach($this->quests as $name => $progress) {
$quest = $this->core->getGameManager()->getQuestManager()->getQuest($name);
switch($quest->getRarity()) {
case Rarity::SIMPLE:
$simple[$name] = $progress;
break;
case Rarity::UNCOMMON:
$uncommon[$name] = $progress;
break;
case Rarity::ELITE:
$elite[$name] = $progress;
break;
case Rarity::ULTIMATE:
#0 plugins/NexusPrison.phar/src/core/provider/thread/MySQLThread(167): core\player\DataSession->core\player\{closure}(array[1])
#1 plugins/NexusPrison.phar/src/core/provider/task/ReadResultsTask(32): core\provider\thread\MySQLThread->checkResults()
#2 src/scheduler/TaskHandler(117): core\provider\task\ReadResultsTask->onRun()
#3 src/scheduler/TaskScheduler(144): pocketmine\scheduler\TaskHandler->run()
#4 src/plugin/PluginManager(402): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 322061)
#5 src/Server(1618): pocketmine\plugin\PluginManager->tickSchedulers(integer 322061)
#6 src/Server(1520): pocketmine\Server->tick()
#7 src/Server(1076): pocketmine\Server->tickProcessor()
#8 src/PocketMine(246): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[21] /home/servers/prison/, string[29] /home/servers/prison/plugins/)
#9 src/PocketMine(271): pocketmine\server()
#10 (11): require(string[65] phar:///home/servers/prison/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show