Pet purchase fails and throws one exception
Build Information
Emulator Version: Last Supernova Build (https://git.krews.org/morningstar/Arcturus-Community/-/jobs/882)
Current Behavior
Currently, when you press "Buy" for any pet, the purchase fails and you get the following exception:
16:13:31.997 [HabExec-1-2 ] ERROR c.e.h.h.catalog.CatalogManager - Caught exception
java.lang.NullPointerException: Cannot invoke "com.eu.habbo.habbohotel.rooms.RoomTile.getX()" because the return value of "com.eu.habbo.habbohotel.rooms.pets.entities.RoomPet.getCurrentPosition()" is null
at com.eu.habbo.habbohotel.pets.Pet.run(Pet.java:236)
at com.eu.habbo.habbohotel.pets.PetManager.createPet(PetManager.java:410)
at com.eu.habbo.habbohotel.catalog.CatalogManager.purchaseItem(CatalogManager.java:942)
at com.eu.habbo.messages.incoming.catalog.PurchaseFromCatalogEvent.handle(PurchaseFromCatalogEvent.java:190)
at com.eu.habbo.messages.PacketManager.handlePacket(PacketManager.java:207)
at com.eu.habbo.threading.runnables.ChannelReadHandler.run(ChannelReadHandler.java:21)
at com.eu.habbo.threading.ThreadPooling.lambda$run$0(ThreadPooling.java:47)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:1583)
Steps to Reproduce
- Buy any bot from catalog
Context (Environment)
- Last Arcturus Build with
- Base database for Arcturus
- Last Nitro React Build