From d92a7fe8aeada39e1d64d7bbae3ec6baf78acbe5 Mon Sep 17 00:00:00 2001 From: Thomas Gran Date: Wed, 6 Nov 2024 10:12:48 +0100 Subject: [PATCH] fix: Return empty list if there is no siriUrls in situations[]/infoLinks. --- .../apis/transmodel/model/siri/sx/PtSituationElementType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/src/main/java/org/opentripplanner/apis/transmodel/model/siri/sx/PtSituationElementType.java b/application/src/main/java/org/opentripplanner/apis/transmodel/model/siri/sx/PtSituationElementType.java index 1567cd977c9..4fd9505b73e 100644 --- a/application/src/main/java/org/opentripplanner/apis/transmodel/model/siri/sx/PtSituationElementType.java +++ b/application/src/main/java/org/opentripplanner/apis/transmodel/model/siri/sx/PtSituationElementType.java @@ -241,7 +241,7 @@ public static GraphQLObjectType create( if (!siriUrls.isEmpty()) { return siriUrls; } - return null; + return emptyList(); }) .build() )