DragonSurvivalTeam / DragonSurvival

Other
49 stars 41 forks source link

Fix crash when Tabbing over UI elements #563

Closed MetaflameDragon closed 2 months ago

MetaflameDragon commented 3 months ago

Pressing Tab repeatedly could lead to a crash because displayString was unexpectedly set to null. This replaces all such instances with Component.empty()

In addition, I replaced all nearby handlers also set to null with empty lambdas. I don't think these caused any crashes otherwise, as the invoking method was overriden each time, but it's still better to not pass nulls to NotNull-annotated params.