diff --git a/src/main/java/com/conveyal/r5/analyst/scenario/IndexedPolygonCollection.java b/src/main/java/com/conveyal/r5/analyst/scenario/IndexedPolygonCollection.java index d61f6066a..7c180ff77 100644 --- a/src/main/java/com/conveyal/r5/analyst/scenario/IndexedPolygonCollection.java +++ b/src/main/java/com/conveyal/r5/analyst/scenario/IndexedPolygonCollection.java @@ -132,7 +132,7 @@ public void loadFromS3GeoJson() throws Exception { boolean indexThisFeature = true; if (id == null) { allPolygonsHaveIds = false; - } else if (!(name instanceof String)) { + } else if (!(id instanceof String)) { errors.add(String.format("Value '%s' of attribute '%s' of feature %d should be a string.", id, idAttribute, featureNumber)); indexThisFeature = false;