wiremod / wire

Garry's Mod add-on that allows users to wire up components in order to make more elaborate automatic and user-controlled contraptions.
http://www.wiremod.com
Apache License 2.0
547 stars 332 forks source link

E2 NULL error #3058

Closed wrefgtzweve closed 2 months ago

wrefgtzweve commented 2 months ago

Not entirely sure how to replicate this, ply being NULL should be a good indication though.

addons/wire/lua/entities/gmod_wire_expression2/core/e2lib.lua:1075: Tried to use a NULL entity!
   1.  unknown - [C]:-1
    2.  UniqueID - [C]:-1
     3.  withOwner - addons/wire/lua/entities/gmod_wire_expression2/core/e2lib.lua:1075
      4.  ResetContext - addons/wire/lua/entities/gmod_wire_expression2/init.lua:425
       5.  Setup - addons/wire/lua/entities/gmod_wire_expression2/init.lua:537
        6.  unknown - addons/wire/lua/entities/gmod_wire_expression2/init.lua:581

locals:

self = {
  Scope = Table [2 items]
  funcs_ret = Table [(empty)]
  ScopeID = Number [0]
  uid = "World"
  timebench = Number [0]
}
ply  = Player [NULL]
Denneisk commented 2 months ago

Seems like just missing a null check.