We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 118b7d4 + a9001cc commit 55dbb0dCopy full SHA for 55dbb0d
src/main/java/org/opentripplanner/index/IndexGraphQLSchema.java
@@ -2425,7 +2425,12 @@ private Object getObject(String idString) {
2425
Integer.parseInt(parts[0], 10));
2426
}
2427
if (id.type.equals(stopType.getName())) {
2428
- return index.stopForId.get(FeedScopedId.convertFromString(id.id));
+ Stop matchedStop = index.stopForId.get(FeedScopedId.convertFromString(id.id));
2429
+ if (matchedStop == null) {
2430
+ matchedStop = index.stationForId.get(FeedScopedId.convertFromString(id.id));
2431
+ }
2432
+
2433
+ return matchedStop;
2434
2435
if (id.type.equals(tripType.getName())) {
2436
return index.tripForId.get(FeedScopedId.convertFromString(id.id));
0 commit comments