Skip to content

Fix: Prevent NullReferenceException in ModifyTooltips when iterating tooltips#111

Open
Daniil-Techart wants to merge 1 commit intoCalamityTeam:1.4.4from
Daniil-Techart:1.4.4
Open

Fix: Prevent NullReferenceException in ModifyTooltips when iterating tooltips#111
Daniil-Techart wants to merge 1 commit intoCalamityTeam:1.4.4from
Daniil-Techart:1.4.4

Conversation

@Daniil-Techart
Copy link

This PR fixes a critical issue where the game would freeze or throw a System.NullReferenceException when using the search bar in the Creative Inventory (Journey Mode)
The bug isn't reproducible on regular seeds
It was discovered and is reproducible on get fixed boi

System.NullReferenceException: Object reference not set to an instance of an object.
   at CalamityMod.Items.CalamityGlobalItem.ModifyTooltips(Item item, List`1 tooltips) in CalamityMod\Items\CalamityGlobalItem.cs:line 116
   ...
   at Terraria.GameContent.UI.Elements.UICreativeInfiniteItemsDisplay.UpdateContents()
Dotnet.2026.02.28.-.08.41.03.20.DVR.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant