ID:2829155
 
Resolved
Trying to read from a prototype's vars list caused a crash instead of a runtime error or null.
BYOND Version:515
Operating System:Windows 10 Home
Web Browser:Firefox 105.0
Applies to:Dream Daemon
Status: Resolved (515.1592)

This issue has been resolved.
Descriptive Problem Summary:
Accessing the vars list for some not supported types causes a crash instead of runtime error, while it correctly causes a runtime error for other not supported types. In previous versions it caused a runtime error that was able to be caught in a try/catch block.
Numbered Steps to Reproduce Problem:
1. Try to access datum.type:vars
2. Crash
Code Snippet (if applicable) to Reproduce Problem:
mob/verb
CrashMe()
var/v = usr.type:vars

RuntimeMe() // expected result
var/str = "Hello"
var/v = str:vars


Expected Results:
To throw a runtime error.
Actual Results:
Crashes the server.
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?
-
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.)
Version 514.1589 works as expected.
Workarounds:
Don't do what I'm doing.
Lummox JR resolved issue with message:
Trying to read from a prototype's vars list caused a crash instead of a runtime error or null.