isXander / isXander/YetAnotherConfigLib

Crash on 1.21.6+ when clicking a LabelOption

Open
#287 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
155
Forks
68
PR merge metrics
No merged PRs in 30d

Description

NullPointerException: Cannot invoke "net.minecraft.text.Style.getClickEvent()" because "$$0" is null

Seems to affect latest yacl (3.7.1) for mc 1.21.6 and up, fabric and neoforge. 1.21.5 works fine.

This was reported to me here but I think this is a yacl issue.
Here is the user's log:
https://mclo.gs/vkzv1mn

Here's my own log with a minimal mod set and stackdeobfuscator:
https://mclo.gs/tf7PKJs

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash when clicking a LabelOption on Minecraft 1.21.6 or newer with YACL 3.7.1, then compare behavior with 1.21.5. Inspect the provided user log and minimal-mod log, and consider the report done when the click no longer throws the Style.getClickEvent() NullPointerException on both Fabric and NeoForge.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.