Skip to content

Commit

Permalink
Merge pull request #5789 from entur/fix_null_transport_mode_filter
Browse files Browse the repository at this point in the history
Fix handling of null transport mode filter
  • Loading branch information
vpaturet authored Apr 9, 2024
2 parents 942e3b5 + db554c2 commit c4dff62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static void mapFilterOldWay(
List<MainAndSubMode> tModes = new ArrayList<>();
if (GqlUtil.hasArgument(environment, "modes")) {
Map<String, Object> modesInput = environment.getArgument("modes");
if (modesInput.containsKey("transportModes")) {
if (modesInput.get("transportModes") != null) {
List<Map<String, ?>> transportModes = (List<Map<String, ?>>) modesInput.get(
"transportModes"
);
Expand Down

0 comments on commit c4dff62

Please sign in to comment.