Jump to content

ItemTile:GetDescriptionString() sometimes crashes due to nil playeractionpicker component


hoxi
  • Fixed

I can't consistently reproduce it and I honestly forgot to get the crashlog, but I can confirm it happens without any mods.

Specifically when turning into Wonkey or turning back into your character. It seems like ItemTile can sometimes update in the frame where the player isn't activated yet and doesn't have the playeractionpicker component, or when the previous player entity had it removed.

The lines where the crash can happen are 447 and 463 in widgets/itemtile.lua.

local actions = actionpicker:GetInventoryActions(self.item) --447

local actions = actionpicker:GetUseItemActions(self.item, active_item, true) --463

Either the function or updating process could be sanitized regarding the component's existence.


Steps to Reproduce

Turn into Wonkey or back to your original character, the local client should sometimes crash when transforming.




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...