Welcome to the AFK Mods bug tracker. In order to report an issue, please select a project from the drop down menu below. Select “Open New Issue” and fill out the form with as many details as possible.

An account will be required to submit an issue, so if you need one and are unable to register, please contact us via the forums at https://afkmods.iguanadons.net/

Issue Data
Status: Closed
Issue Type: Bug Report
Project: Unofficial Fallout 4 Patch
Component: Fallout 4: Vanilla
Category: Papyrus
Assigned To: Sclerocephalus
Platform: All
Severity: Very Low
Votes: 0
Watching: N/A
Opened By Sclerocephalus on May 13, 2018 12:19 pm
Last Edited By Sclerocephalus on May 13, 2018 12:31 pm
Closed By Sclerocephalus on May 18, 2018 8:47 pm
Resolution: Fixed
Comment: Fixed for UFO4P 2.0.4

Issue #24485: TrapGun - Cannot call Fire() on a None object

[05/12/2018 - 02:56:11AM] error: Cannot call Fire() on a None object, aborting function call
[ (0019C66E)].TrapGun.LocalFireTrap() - "C:\Users\Dr. Peter Haas\AppData\Local\Temp\PapyrusTemp\TrapGun.psc" Line 39
[ (0019C66E)].TrapGun.FireTrap() - "C:\Users\Dr. Peter Haas\AppData\Local\Temp\PapyrusTemp\TrapBase.psc" Line 172
[ (0019C66E)].TrapGun.OnTimer() - "C:\Users\Dr. Peter Haas\AppData\Local\Temp\PapyrusTemp\TrapBase.psc" Line 243

It's apparently possible that this function is called after the trap was disarmed by grabbing the gun - although the timer event that calls FireTrap() (on TrapBase which TrapGun extends) already checks whether the trap is in "Disarmed" state before proceeding.

Added a failsafe check to the LocalFireTrap() function to make sure that it won't run if there's no gun on the trap.