Closed TheUtopianPlayz closed 4 years ago
i think two of my players tried to buy the same item at once
[15:33:51] [Server thread/CRITICAL]: TypeError: "Return value of shock95x\auctionhouse\database\DataHolder::getListingById() must be an instance of shock95x\auctionhouse\auction\Listing, null returned" (EXCEPTION) in "plugins/AuctionHouse_dev-16.phar/src/shock95x/auctionhouse/database/DataHolder" at line 61 [15:33:51] [Server thread/DEBUG]: #0 plugins/AuctionHouse_dev-16.phar/src/shock95x/auctionhouse/menu/MenuHandler(201): shock95x\auctionhouse\database\DataHolder::getListingById(integer 1583440407) [15:33:51] [Server thread/DEBUG]: #1 plugins/AuctionHouse_dev-16.phar/src/shock95x/auctionhouse/libs/muqsit/invmenu/InvMenuHandler(68): shock95x\auctionhouse\menu\MenuHandler->handlePurchase(object pocketmine\Player, object pocketmine\item\ItemBlock, object pocketmine\item\ItemBlock, object pocketmine\inventory\transaction\action\SlotChangeAction) [15:33:51] [Server thread/DEBUG]: #2 src/pocketmine/plugin/MethodEventExecutor(42): shock95x\auctionhouse\libs\muqsit\invmenu\InvMenuHandler->onInventoryTransaction(object pocketmine\event\inventory\InventoryTransactionEvent) [15:33:51] [Server thread/DEBUG]: #3 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object shock95x\auctionhouse\libs\muqsit\invmenu\InvMenuHandler, object pocketmine\event\inventory\InventoryTransactionEvent) [15:33:51] [Server thread/DEBUG]: #4 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\inventory\InventoryTransactionEvent) [15:33:51] [Server thread/DEBUG]: #5 src/pocketmine/inventory/transaction/InventoryTransaction(279): pocketmine\event\Event->call() [15:33:51] [Server thread/DEBUG]: #6 src/pocketmine/inventory/transaction/InventoryTransaction(298): pocketmine\inventory\transaction\InventoryTransaction->callExecuteEvent() [15:33:51] [Server thread/DEBUG]: #7 src/pocketmine/Player(2339): pocketmine\inventory\transaction\InventoryTransaction->execute() [15:33:51] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(150): pocketmine\Player->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) [15:33:51] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(178): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) [15:33:51] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [15:33:51] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/protocol/BatchPacket(127): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) [15:33:51] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [15:33:51] [Server thread/DEBUG]: #13 src/pocketmine/Player(3096): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [15:33:51] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [15:33:51] [Server thread/DEBUG]: #15 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[19] 68.101.113.91 50889, object raklib\protocol\EncapsulatedPacket, integer 0) [15:33:51] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [15:33:51] [Server thread/DEBUG]: #17 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [15:33:51] [Server thread/DEBUG]: #18 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [15:33:51] [Server thread/DEBUG]: #19 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [15:33:51] [Server thread/DEBUG]: #20 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1583440432.0164) [15:33:51] [Server thread/DEBUG]: #21 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor() [15:33:51] [Server thread/DEBUG]: #22 src/pocketmine/Server(1584): pocketmine\Server->start() [15:33:51] [Server thread/DEBUG]: #23 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[17] /home/p2e/prison/, string[25] /home/p2e/prison/plugins/) [15:33:51] [Server thread/DEBUG]: #24 src/pocketmine/PocketMine(296): pocketmine\server()
i think two of my players tried to buy the same item at once
[15:33:51] [Server thread/CRITICAL]: TypeError: "Return value of shock95x\auctionhouse\database\DataHolder::getListingById() must be an instance of shock95x\auctionhouse\auction\Listing, null returned" (EXCEPTION) in "plugins/AuctionHouse_dev-16.phar/src/shock95x/auctionhouse/database/DataHolder" at line 61 [15:33:51] [Server thread/DEBUG]: #0 plugins/AuctionHouse_dev-16.phar/src/shock95x/auctionhouse/menu/MenuHandler(201): shock95x\auctionhouse\database\DataHolder::getListingById(integer 1583440407) [15:33:51] [Server thread/DEBUG]: #1 plugins/AuctionHouse_dev-16.phar/src/shock95x/auctionhouse/libs/muqsit/invmenu/InvMenuHandler(68): shock95x\auctionhouse\menu\MenuHandler->handlePurchase(object pocketmine\Player, object pocketmine\item\ItemBlock, object pocketmine\item\ItemBlock, object pocketmine\inventory\transaction\action\SlotChangeAction) [15:33:51] [Server thread/DEBUG]: #2 src/pocketmine/plugin/MethodEventExecutor(42): shock95x\auctionhouse\libs\muqsit\invmenu\InvMenuHandler->onInventoryTransaction(object pocketmine\event\inventory\InventoryTransactionEvent) [15:33:51] [Server thread/DEBUG]: #3 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object shock95x\auctionhouse\libs\muqsit\invmenu\InvMenuHandler, object pocketmine\event\inventory\InventoryTransactionEvent) [15:33:51] [Server thread/DEBUG]: #4 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\inventory\InventoryTransactionEvent) [15:33:51] [Server thread/DEBUG]: #5 src/pocketmine/inventory/transaction/InventoryTransaction(279): pocketmine\event\Event->call() [15:33:51] [Server thread/DEBUG]: #6 src/pocketmine/inventory/transaction/InventoryTransaction(298): pocketmine\inventory\transaction\InventoryTransaction->callExecuteEvent() [15:33:51] [Server thread/DEBUG]: #7 src/pocketmine/Player(2339): pocketmine\inventory\transaction\InventoryTransaction->execute() [15:33:51] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(150): pocketmine\Player->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) [15:33:51] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(178): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) [15:33:51] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [15:33:51] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/protocol/BatchPacket(127): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) [15:33:51] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [15:33:51] [Server thread/DEBUG]: #13 src/pocketmine/Player(3096): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [15:33:51] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [15:33:51] [Server thread/DEBUG]: #15 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[19] 68.101.113.91 50889, object raklib\protocol\EncapsulatedPacket, integer 0) [15:33:51] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [15:33:51] [Server thread/DEBUG]: #17 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [15:33:51] [Server thread/DEBUG]: #18 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [15:33:51] [Server thread/DEBUG]: #19 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [15:33:51] [Server thread/DEBUG]: #20 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1583440432.0164) [15:33:51] [Server thread/DEBUG]: #21 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor() [15:33:51] [Server thread/DEBUG]: #22 src/pocketmine/Server(1584): pocketmine\Server->start() [15:33:51] [Server thread/DEBUG]: #23 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[17] /home/p2e/prison/, string[25] /home/p2e/prison/plugins/) [15:33:51] [Server thread/DEBUG]: #24 src/pocketmine/PocketMine(296): pocketmine\server()