conveyal / analyst-server

DEPRECATED; see https://github.com/conveyal/analysis-ui
MIT License
37 stars 6 forks source link

Query class attempts to modify an immutable list #268

Closed abyrd closed 8 years ago

abyrd commented 8 years ago

Analyst-server sometimes creates queries with empty lists of bannedRoutes. I observed this when running a regional analysis with a non-empty scenario. This combination causes Query to create a list of modifications using Arrays.asList(removeTrips) and then subsequently it does addAll(scenario.modifications). The lists created with asList are immutable views so this causes the analysis to fail.