In some sample code from ST they get the list of Routines/Phrases in this manner:
def phrases = location.helloHome?.getPhrases()*.label
A system in which there are no routines, getPhrases() would return null. Now I know that the spread dot operator is null safe, but I don’t think it’ll work on a null object, it’ll just ignore element in an array.
Am I correct? If so maybe ST should change the sample code