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.
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 doesaddAll(scenario.modifications)
. The lists created with asList are immutable views so this causes the analysis to fail.