Attempting to read a var that is not defined on /list should throw a runtime error, instead reading returns null.
Numbered Steps to Reproduce Problem:
Run this project: https://github.com/DamianX/byondbugs/raw/main/listvars/ listvars.zip
Code Snippet (if applicable) to Reproduce Problem:
/world/New()
..()
var/obj/L = list() // Defined as obj so that accessing /obj vars can compile, but should fail at runtime.
world.log << isnull(L.icon) // Outputs 1, should throw instead
var/list/L2 = list()
world.log << isnull(L2:icon_state) // Outputs 1, should throw instead.
Expected Results:
Runtime errors.
Actual Results:
Nothing at all.
Does the problem occur:
Every time? Or how often? Every time.
In other games? Yes.
In other user accounts? Yes.
On other computers? Yes.
When does the problem NOT occur?
Don't know.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Don't know.