-
Notifications
You must be signed in to change notification settings - Fork 0
[Bug]: NeoForge 1.21.1 NPE while recording recipe source details #3
Copy link
Copy link
Open
Labels
P2High: major functionality is broken or crashes with limited workaroundHigh: major functionality is broken or crashes with limited workaroundarea:recipesRecipe loading, querying, snapshots, or derived EMCRecipe loading, querying, snapshots, or derived EMCloader:neoforgeNeoForge-specificNeoForge-specificstatus:in-progressSomeone is actively implementing itSomeone is actively implementing ittype:bugA defect or incorrect behaviorA defect or incorrect behavior
Description
Metadata
Metadata
Assignees
Labels
P2High: major functionality is broken or crashes with limited workaroundHigh: major functionality is broken or crashes with limited workaroundarea:recipesRecipe loading, querying, snapshots, or derived EMCRecipe loading, querying, snapshots, or derived EMCloader:neoforgeNeoForge-specificNeoForge-specificstatus:in-progressSomeone is actively implementing itSomeone is actively implementing ittype:bugA defect or incorrect behaviorA defect or incorrect behavior
Bug description
A telemetry report captured an unhandled
NullPointerExceptionwhile Dissolver Enhanced was querying recipe EMC values after recipes loaded.Affected code
The current code path retrieves a value from
RECIPE_ITEM_SOURCE_DETAILSwhen the key exists, then callssourceDetails.contains(...). A present key with a null list value can therefore reach this NPE.Observed environment
1.5.311.21.121.1.23821Stack trace
Expected behavior
Recipe-source detail collection should initialize or replace a null list value and continue querying recipes without an exception.
Reproduction status
This came from an anonymized error report. Exact player/session identifiers, account information, IP/device details, and the full mod list are intentionally omitted. A deterministic reproduction is not yet available.