Help. I get Accessed None Error on a widget component

Hey so i got this error when troubleshooting the simple drag and drop system. I got this error on an update function for the inventory and storage. The VB storage/Vb Inventory is a vertical box while the BP chest ref is a reference to the chest blueprint i made

This is the update inventory

And this is the update storage

I did some restructuring trying to fix the error (Like making a new blueprint class for storage) and now i get this error

Open W_ChestInventoryUI and see if you are not trying to use VB_Inventory or VB_Storage. It seems like you have removed these variables(or maybe renamed and something failed?), but you are still trying to access them in your logic.

Okay i looked and everything is as it should be but i found why the new error happened was because i changed the category of vb inventory and vb storage, so i closed UE and opened it again, tested it and now i just get the accessed none error

This is the W_chestInventoryUI Widget

accessed none is most likely due to the variable never being set to an object. Are you setting it anywhere in your logic?
What I think is maybe W_Storage and W_InventoryContainer in your UpdateStorage/Inventory functions are null.

I´m not setting it anywhere but when i try it say its readonly

Right, I now see these are widgets inside W_chestInventoryUI, so they are set automatically.
could you post screenshots with logic in W_Storage and W_InventoryContainer? Maybe you have called ClearChildren on a parent widget that was holding VB_Storage/VB_Inventory, but that’s my wild guess as I can’t be sure without seeing the project

Okay thats the W_Storage

And this is the W_Inventory Container

So somehow after i put all the functions related to storage into a new category i now no longer get the error. UE5 is sometimes really confusing