cdaragorn / Ui-Info-Suite

Mod for Stardew Valley.
87 stars 360 forks source link

Fixed NPE when opening a shop window and not hovering over an Item #38

Closed LunaLycan287 closed 4 years ago

LunaLycan287 commented 4 years ago

typeof(ShopMenu).GetField("hoveredItem").GetValue() will be null if there is no item hovered. Therefore null.GetValue(menu) was invoked.

Opening any vendor's Window will provoke said NPE

Original in pr #36 but without additional changes