Skip to content

Adjust dwell time modification triggers NPE #456

Open
@ansoncfit

Description

@ansoncfit

By default, an adjust dwell time modification is applied to all stops in selected route/patterns. The UI shows all stops selected, and R5 specifies:

    /** Stops at which to change the dwell times. If not specified, all dwell times will be changed. */
    public Set<String> stops;

But analyzing a scenario with such a modification triggers

null java.lang.NullPointerException at java.util.Arrays.stream(Arrays.java:5004) at 
com.conveyal.taui.models.Modification.feedScopeIds(Modification.java:44) at 
com.conveyal.taui.models.AdjustDwellTime.toR5(AdjustDwellTime.java:36) at 
com.conveyal.taui.models.AdjustDwellTime.toR5(AdjustDwellTime.java:6) at 

As a workaround, users can explicitly select all stops on the desired route/patterns.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions