From ff12cdccf49664064c3142213ccb272d96c2d597 Mon Sep 17 00:00:00 2001 From: ansons Date: Wed, 13 Apr 2022 14:51:02 -0400 Subject: [PATCH] fix: correct error logging condition It looks like this code was copy/pasted from a few lines below. --- .../conveyal/r5/analyst/scenario/IndexedPolygonCollection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;