1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Error: "Call to a member function getBlock() on null" (EXCEPTION) in "src/pocketmine/block/Chest"

Discussion in 'Help' started by TeraCube, Nov 26, 2017.

  1. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    hmm plugin error i suppose ?
    thanks

    Code:
    2017-11-26 [15:19:36] [Server thread/CRITICAL]: Error: "Call to a member function getBlock() on null" (EXCEPTION) in "src/pocketmine/block/Chest" at line 128
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #0 src/pocketmine/level/Level(1779): pocketmine\block\Chest->onActivate(pocketmine\item\DiamondAxe object, pocketmine\Player object)
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #1 src/pocketmine/Player(2286): pocketmine\level\Level->useItemOn(pocketmine\math\Vector3 object, pocketmine\item\DiamondAxe object, integer 5, pocketmine\math\Vector3 object, pocketmine\Player object, boolean 1)
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #2 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #3 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(149): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #4 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/protocol/BatchPacket(115): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #7 src/pocketmine/Player(2999): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/RakLibInterface(143): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #9 vendor/pmmp/raklib/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string xx.193.63.198:51474, raklib\protocol\EncapsulatedPacket object, integer 0)
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/RakLibInterface(84): raklib\server\ServerHandler->handlePacket()
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #11 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #12 src/pocketmine/Server(2516): pocketmine\network\Network->processInterfaces()
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #13 src/pocketmine/Server(2272): pocketmine\Server->tick()
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #14 src/pocketmine/Server(2147): pocketmine\Server->tickProcessor()
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #15 src/pocketmine/Server(1735): pocketmine\Server->start()
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #16 src/pocketmine/PocketMine(552): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/, string /home/gsp_1485/g3.hmserv.eu-19144/, string /home/gsp_1485/g3.hmserv.eu-19144/plugins/)
    2017-11-26 [15:19:36] [Server thread/DEBUG]: #17 /home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar(1): require(string phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
    2017-11-26 [15:19:36] [RakLibServer thread/NOTICE]: Blocked xx.193.63.198 for 5 seconds
     
  2. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    Weird, looks like a chest thought it isPaired, but getPair() failed to get a ChestTile.
     
  3. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    isPaired() just tells if the `pairx` and `pairz` tags are set in the NBT.

    I would say maybe an unloaded chunk is at fault, but that seems unlikely, since the player is close enough to open the chest, the chunks nearby ought to be loaded. Can you reproduce this bug?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.