[wire] addons/wire/lua/wire/wireshared.lua:437: attempt to index local 'entTbl' (a nil value)
1. HasPorts - addons/wire/lua/wire/wireshared.lua:437
2. func - addons/wire/lua/weapons/gmod_tool/stools/wire_adv.lua:1275
3. unknown - addons/ulib/lua/includes/modules/hook.lua:260
Which happens because :GetTable() returns a nil on NULL entities. In this case the trace traceResult can return a NULL ent when the trace doesn't ever hit anything thus causing this error.
Fixes
Which happens because
:GetTable()
returns anil
onNULL
entities. In this case the trace traceResult can return a NULL ent when the trace doesn't ever hit anything thus causing this error.