Check if Actor Role is invalid before using it

To avoid crash to Home screen from:
  Type Mismatch. Operator "+" can't be applied to "String" and "Invalid". (runtime error &h18) in pkg:/components/extras/ExtrasRowList.brs(53)
This commit is contained in:
Zusukar 2022-05-17 20:19:27 -04:00 committed by GitHub
parent 474bc1c297
commit 790d7f6729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ sub onPeopleLoaded()
row = data.createChild("ContentNode")
row.Title = tr("Cast & Crew")
for each person in people
if person.json.type = "Actor"
if person.json.type = "Actor" and person.json.Role <> invalid
person.subTitle = "as " + person.json.Role
else
person.subTitle = person.json.Type