fix: check placeBindings for null instead of checking each destructured value

This commit is contained in:
Rsedp8 2025-05-24 17:35:45 +02:00
parent 50c7c49bdb
commit d6d8155cee

View file

@ -531,7 +531,6 @@ ${"wd:" + place.wikiDataEntityId}"""
)
if (placeBindings != null) {
for ((item1, label, location, clas) in placeBindings) {
if (item1 != null && label != null && clas != null) {
val input = location.value
val pattern = Pattern.compile(
"Point\\(([-+]?[0-9]*\\.?[0-9]+) ([-+]?[0-9]*\\.?[0-9]+)\\)"
@ -567,7 +566,6 @@ ${"wd:" + place.wikiDataEntityId}"""
}
}
}
}
kmlString = """$kmlString
</Document>
</kml>