menu
#2580785 Call to a member function getFolderName() on null

Submitted by PocketMine-MP 3.8.6

General information

Version: 3.8.6
Git commit: 1bfd6f2a
Plugin involvement: Direct
Report date: 2019-07-11 18:28:42 +0000 UTC

System Information

PHP version: 7.3.6
Operating system: win
System banner: Windows NT T510 10.0 build 18936 (Windows 10) AMD64

Error information

Warning: the EasyHomes plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getFolderName() on null
File: plugins/EasyHomes_dev-20(1).phar/src/JackMD/EasyHomes/utils/Utils
Line: #52
Error level: Error
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
	/**
* Converts the location, yaw and pitch to array.
*
* @param Location $location
* @param float $yaw
* @param float $pitch
* @return array
*/
public static function __toArray(Location $location, float $yaw = 0.0, float $pitch = 0.0): array{
return [(int) $location->getX(), (int) $location->getY(), (int) $location->getZ(), $yaw, $pitch, $location->getLevel()->getFolderName()];
}

/**
* Converts the array to Location.
*
* @param array $array
* @param Level|null $level
* @return Location
*/
public static function __toLocation(array $array, Level $level = null): Location{
#0 plugins/EasyHomes_dev-20(1).phar/src/JackMD/EasyHomes/provider/providers/YamlProvider(86): JackMD\EasyHomes\utils\Utils::__toArray(object pocketmine\level\Location, double 0, double 0)
#1 plugins/EssentialsHomesImporter_dev-2(1).phar/src/JackMD/EssentialsHomesImporter/EssentialsHomesImporter(68): JackMD\EasyHomes\provider\providers\YamlProvider->setHome(string[14] alfynetzwerkyt, string[3] bed, object pocketmine\level\Location, double 0, double 0)
#2 src/pocketmine/command/PluginCommand(58): JackMD\EssentialsHomesImporter\EssentialsHomesImporter->onCommand(object pocketmine\command\ConsoleCommandSender, object pocketmine\command\PluginCommand, string[6] import, array[1])
#3 src/pocketmine/command/SimpleCommandMap(270): pocketmine\command\PluginCommand->execute(object pocketmine\command\ConsoleCommandSender, string[6] import, array[1])
#4 src/pocketmine/Server(2029): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[14] import confirm)
#5 src/pocketmine/Server(1616): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[14] import confirm)
#6 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine\{closure}()
#7 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#8 src/pocketmine/Server(2348): pocketmine\snooze\SleeperHandler->sleepUntil(double 1562869722.7312)
#9 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#10 src/pocketmine/Server(1784): pocketmine\Server->start()
#11 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[67] C:\Users\bernd\Downloads\PocketMine-MP-stable\PocketMine-MP-stable\, string[75] C:\Users\bernd\Downloads\PocketMine-MP-stable\PocketMine-MP-stable\plugins\)
#12 (1): require(string[122] phar://C:/Users/bernd/Downloads/PocketMine-MP-stable/PocketMine-MP-stable/Pocket)

Loaded Plugins

  • Show

Server Settings

  • Show