kopia lustrzana https://github.com/JOSM/MapWithAI
ESRISourceReader: Account for `null` values for "accessInformation"
Signed-off-by: Taylor Smock <tsmock@fb.com>pull/1/head v1.9.15
rodzic
840cadb61b
commit
48751b16ec
|
@ -181,7 +181,8 @@ public class ESRISourceReader {
|
|||
if (this.ignoreConflationCategories.contains(newInfo.getCategory())) {
|
||||
newInfo.setConflation(false);
|
||||
}
|
||||
if (feature.containsKey("accessInformation")) {
|
||||
if (feature.containsKey("accessInformation")
|
||||
&& feature.get("accessInformation").getValueType() != JsonValue.ValueType.NULL) {
|
||||
newInfo.setAttributionText(feature.getString("accessInformation"));
|
||||
}
|
||||
newInfo.setDescription(feature.getString("snippet"));
|
||||
|
|
Ładowanie…
Reference in New Issue