-
Notifications
You must be signed in to change notification settings - Fork 487
Open
Labels
area: renderingpriority: lowLow priority PRs that don't immediately need to be resolvedLow priority PRs that don't immediately need to be resolvedsmall change
Description
Description
ExtraModelKey has no equals or hashCode methods meaning HashMap differentiates only by == a.k.a. instance.
Reproduction
- Register an Extra Model.
- Get the model using a new
ExtraModelKeywith the sameIdentifier. -
Null jumpscare!
Additional Details
This is a serious issue when dealing with extra models, because it means you must store your ExtraModelKeys somewhere as a constant.
Metadata
Metadata
Assignees
Labels
area: renderingpriority: lowLow priority PRs that don't immediately need to be resolvedLow priority PRs that don't immediately need to be resolvedsmall change