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

[Bug Report]: NullPointerException in DaggersID.getItem() #311

Open
AyQWERTY opened this issue Feb 2, 2025 · 4 comments
Open

[Bug Report]: NullPointerException in DaggersID.getItem() #311

AyQWERTY opened this issue Feb 2, 2025 · 4 comments
Assignees
Labels
Maybe a bug? Maybe not? Good for newcomers

Comments

@AyQWERTY
Copy link

AyQWERTY commented Feb 2, 2025

Describe the bug; What happened?

The server crashes randomly without any direct player interaction with daggers. No players have these items in their inventories when the crashes occur. Based on the crash reports, the issue sometimes happens during structure generation (e.g., mineshafts).

Expected Behavior

The server should not crash due to an issue with DaggersID.getItem(), especially when no players are interacting with these items.

Mod Version

9.0.4

Minecraft Launcher

None

Operating System

Linux

Modpack

Custom modpack for Minecraft 1.20.1

Additional context

There have been multiple crashes with the same error:

java.lang.NullPointerException: Cannot invoke "chronosacaria.mcdw.bases.McdwDagger.method_7854()" 
because the return value of "chronosacaria.mcdw.enums.DaggersID.getItem()" is null

The issue appears consistently across different crash reports, always pointing to DaggersID.getItem(). Based on logs, the crashes are not tied to direct player actions but seem to occur during unrelated game events, possibly structure generation or loot table interactions.

@chronosacaria
Copy link
Owner

@AyQWERTY could you post the whole log, please?

@AyQWERTY
Copy link
Author

AyQWERTY commented Feb 2, 2025

@chronosacaria
Copy link
Owner

@AyQWERTY thanks, mate. I'll take a look at this when I have a moment

@AyQWERTY
Copy link
Author

AyQWERTY commented Feb 3, 2025

Since mods are automatically updated, the message about needing to remove configs (when updating 9.0.1 -> 9.0.2) was missed.
After the removal it seems the problem is solved and the ticket can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maybe a bug? Maybe not? Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants