Fishing Made Better

Fishing Made Better

8M Downloads

NullPointerException: Ticking Player

KameiB opened this issue ยท 0 comments

commented

I was just fishing in RLCraft and this error crashed the game:

java.lang.NullPointerException: Ticking player
at net.theawesomegem.fishingmadebetter.common.event.FishingEventHandler.onPlayerFish(FishingEventHandler.java:167)

Checking the line 167, it has this:
if((ConfigurationManager.server.skipMinigame || fishingData.getFishDistance() >= (fishingData.getFishDeepLevel()-10)) && chunkFishingData.getFishes(world.getTotalWorldTime()).get(fishCaughtData.fishId).getQuantity() > 0)

Could it be that any of these variables became Null and that wasn't checked before this line?

This error happened once in aprox. 5hrs of constant fishing, so I would say is difficult to reproduce.

Attached latest.log and crash report:
latest.log
crash-2024-03-04_15.00.15-server.txt