Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException: Ticking Player #19

Open
KameiB opened this issue Mar 4, 2024 · 0 comments
Open

NullPointerException: Ticking Player #19

KameiB opened this issue Mar 4, 2024 · 0 comments

Comments

@KameiB
Copy link
Contributor

KameiB commented Mar 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant