PaperMC / PaperMC/Paper

LootGenerateEvent.getLootTable annotated as NotNull but can be null sometimes

Open
#13,266 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

status: accepted version: 1.21.10 version: 1.21.8
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

.

Contributor guide

Open the contributing guide

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

Locate LootGenerateEvent.getLootTable and inspect its nullability annotation and callers. Reproduce or identify the circumstances where it returns null, then check nearby API tests or event behavior. Done means the annotation and documented contract accurately match the observed behavior, with regression coverage if an existing test location is found.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.