Bug - Fixed getWorkshed() (and get_workshed()) fail explosively when you have no workshed

From the CLI:

> js getWorkshed()

Unexpected error, debug log printed.

> ash get_workshed()

()
Script execution aborted (java.lang.NullPointerException): ()
Returned: void

Debug log attached.

It appears to not be prepared for this possibility, and thus will not return $item[none].
 

Attachments

  • get workshed debug log.txt
    8.7 KB · Views: 4

katyarn

Member
Can reproduce this in Standard (Quantum Terrarium) with a Mayo Clinic (restricted in standard) installed.
 

Attachments

  • DEBUG_20210725.txt
    17 KB · Views: 1
Top