Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException when loading stoptimes for frequency-based trips #6180

Open
miklcct opened this issue Oct 18, 2024 · 0 comments
Open

NullPointerException when loading stoptimes for frequency-based trips #6180

miklcct opened this issue Oct 18, 2024 · 0 comments

Comments

@miklcct
Copy link
Contributor

miklcct commented Oct 18, 2024

Expected behavior

The request returns information about the trip and its frequency.

Observed behavior

A NullPointerException occurs.

Exception while fetching data (/routes[0]/trips[0]/stoptimes) : Cannot invoke "org.opentripplanner.transit.model.timetable.TripTimes.getNumStops()" because "times" is null

Version of OTP used (exact commit hash or JAR name)

2.7.0-SNAPSHOT, commit 30216e9

Data sets in use (links to GTFS and OSM PBF files)

Hong Kong: https://s3.gtfs.pro/files/sourcedata/citybus.zip

Command line used to start OTP

docker run --detach (pwd):/var/opentripplanner docker.io/opentripplanner/opentripplanner:latest --load --serve

Router config and graph build config JSON

Only ParallelRouting is on, no other config.

Steps to reproduce the problem

Run the following GraphQL query.

# This is an example query for fetching all routes of your OTP deployment.
# Click on the documentation icon on the left to read about the available types
# or use autocomplete to explore the schema.
query GtfsExampleQuery {
  routes(name:"258D") {
    gtfsId
    shortName
    trips {
      stoptimes {
        stop {
          gtfsId
          name
        }
        scheduledDeparture
      }
    }
  }
}

The problem doesn't appear if I change 258D to 258S. 258D has frequency-based trips but 258S doesn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant