mojira.dev
MCL-26335

how to fix error: java.lang error, please help!

what is this bug:

java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "<parameter1>" is null

every time i tried to run minecraft 26.1 snapshot 2 it happens

i tried:

reset network

re-installing java

re-installing minecraft

using other networks

updating java

and some CMD stuff

but nothing worked, i’m also sure it’s not because my hardware or graphic card

so can you help me mojang or anybody

thanks.

Comments 2

That line means the launcher is handing the game a null file/argument it didn’t expect.
It's not Java or your network, it's the snapshot jar itself. Assuming you’re trying this on vanilla, do the following:

  1. Close the launcher.

  2. Delete the broken snapshot folder:
    %AppData%\.minecraft\versions\26w02a (or whatever the exact name is)

  3. Restart the launcher, let it re-download the snapshot from scratch.

If it still crashes, post the full crash log (.minecraft\crash-reports\latest.txt) and we’ll see which mod or json entry is missing.

We do not have enough information to find the cause of this issue.

Please attach the crash report found in minecraft/crash-reports/crash-<DATE>-client.txt.
If you cannot find a crash report, please attach the full launcher log found in minecraft/launcher_log.txt.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
📓 Bug Tracker Guidelines -- 💬 Community Support -- 📧 Mojang Support (Technical Issues) -- 📧 Microsoft Support (Account Issues) -- 📓 Project Summary -- ✍️ Feedback and Suggestions -- 📖 Game Wiki

amirhossein

(Unassigned)

Unconfirmed

Retrieved