Tech Reborn

Tech Reborn

34M Downloads

NPE crashing the game

burdoto opened this issue ยท 4 comments

commented

Describe the bug
An internal NPE causes game crashes

Steps to Reproduce
unsure

Environment (please complete the following information with the version):

  • Minecraft: 1.20.1
  • Mod Loader: fabric

Logs
https://mpaste.ntms.link/paste/?content=https%3A%2F%2Fcdn.discordapp.com%2Fattachments%2F1281630168552702022%2F1369899409562931220%2Fcrash-2025-04-29_07.43.29-server.txt&raw=true

Additional context
I wrongly tried to adress this issue in #3425 in a hurry, but actually my attempt was wrong.
I am not entirely sure what causes this crash, as the previous block already checks for null.

commented

@ZurrTum not entirely sure what you mean by that, my fix attempt was wrong, and how I see it, targets should never be null at that point

commented

Have you tried the least mod for testing?
Although I don't know what caused it. But to solve NPE, you only need to replace it with isEmpty() and clear()