Since I don't think you can guarantee that "name" ...
# getting-started
e
Since I don't think you can guarantee that "name" exists you most likely want to write something in line with:
mest.mName = if (element?.getAttibute("name")?.isNotEmpty()) attr else null
👍 1