• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Odd Error; Null Ref

TehAgent

Refugee
When I click on two specific items, it throws red errors. I can hit esc and click off it it onto something else and make the console go away...but I can NOT click on these items in my backpack or in a crate without the error happening. So far its only happening with brass knuckles (which I havent touched) and the impact driver, which I did touch - but all i did was change the repair item.

Heres the log entry:

2026-03-16T13:54:30 955.902 ERR [XUi] Error while updating window group 'backpack':
2026-03-16T13:54:30 955.903 EXC Object reference not set to an instance of an object
at ItemActionEntryRepair.RefreshEnabled () [0x0012e] in <ceda8230b3424c95a10e705cc2717ec1>:0
at XUiC_ItemActionEntry.set_ItemActionEntry (BaseItemActionEntry value) [0x00100] in <ceda8230b3424c95a10e705cc2717ec1>:0
at XUiC_ItemActionList.Update (System.Single _dt) [0x000a3] in <ceda8230b3424c95a10e705cc2717ec1>:0
at XUiController.Update (System.Single _dt) [0x00084] in <ceda8230b3424c95a10e705cc2717ec1>:0
at XUiController.Update (System.Single _dt) [0x00084] in <ceda8230b3424c95a10e705cc2717ec1>:0
at XUiController.Update (System.Single _dt) [0x00084] in <ceda8230b3424c95a10e705cc2717ec1>:0
at XUiC_InfoWindow.Update (System.Single _dt) [0x00000] in <ceda8230b3424c95a10e705cc2717ec1>:0
at XUiC_ItemInfoWindow.Update (System.Single _dt) [0x00000] in <ceda8230b3424c95a10e705cc2717ec1>:0
at XUiController.Update (System.Single _dt) [0x00084] in <ceda8230b3424c95a10e705cc2717ec1>:0
at XUi.OnUpdateDeltaTime (System.Single updateDeltaTime) [0x00159] in <ceda8230b3424c95a10e705cc2717ec1>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
XUi:OnUpdateDeltaTime(Single)
XUiUpdater:Update()
XUiUpdateHelper:LateUpdate()

I have no idea why it started doing this. I havent messed with any of these XUi ; Im not even sure where exactly to find them.

EDIT: Something I did definitely messed up the driver - I reverted it from using a tool battery to 'repair' to a different repair kit, and it is fine now. Something must be wrong with the battery itself...but whatever. It wasnt going to work properly anyway. I wanted to make the player charge batteries but it was a lot of annoying 'stuff' to take a battery out and replace it.
 
Last edited:
If you set an item as a repair item for something but that item doesnt have the RepairAmount and I think RepairTime is also required, it will error. You can look at things like resourceWood to see them.
 
If you set an item as a repair item for something but that item doesnt have the RepairAmount and I think RepairTime is also required, it will error. You can look at things like resourceWood to see them.
Aha...thank you!

I did not add repair amount or time. I bet I did touch those knuckles early on when I started this Mod project. I was making things a little more 'realistic' and I bet I made it repair with brass or something.
 
Back
Top