From e1ea3f114e745ae721a04d2ce07bb29ecbbb9d53 Mon Sep 17 00:00:00 2001 From: jcpitre Date: Thu, 29 Aug 2024 15:52:27 -0400 Subject: [PATCH] Corrected a NPE caused by containers missing for files not dataset --- .../org/mobilitydata/gtfsvalidator/table/GtfsFeedLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/mobilitydata/gtfsvalidator/table/GtfsFeedLoader.java b/core/src/main/java/org/mobilitydata/gtfsvalidator/table/GtfsFeedLoader.java index b2050bb3ae..9223b387ac 100644 --- a/core/src/main/java/org/mobilitydata/gtfsvalidator/table/GtfsFeedLoader.java +++ b/core/src/main/java/org/mobilitydata/gtfsvalidator/table/GtfsFeedLoader.java @@ -154,7 +154,7 @@ public GtfsFeedContainer loadAndValidate( ArrayList> tableContainers = new ArrayList<>(); tableContainers.ensureCapacity(tableDescriptors.size()); for (GtfsDescriptor tableDescriptor : remainingDescriptors.values()) { - AnyTableLoader.loadMissingFile(tableDescriptor, validatorProvider, noticeContainer); + tableContainers.add(AnyTableLoader.loadMissingFile(tableDescriptor, validatorProvider, noticeContainer)); } try { for (Future futureContainer : exec.invokeAll(loaderCallables)) {