Ticket #118 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

Add error handling to applyColorToHighwayStretch in Highways.java

Reported by: jdalbey Owned by: jdalbey
Priority: Low Milestone: May 2019 Training
Component: Highway Model Version:
Severity: Minor Keywords:
Cc:

Description

Catch NPE exception for situation when the events file
specifies a highway that doesn't exist in the network.
Also the case where a desired postmile to color isn't in
the network.

Change History

comment:1 Changed 7 years ago by jdalbey

  • Status changed from new to closed
  • Resolution set to fixed

The latter case doesn't produce a problem. The code iterates through EXISTING vds stations, so if an invalid postmile is provided, it is ignored (the guard code won't trigger).

The first case was fixed by adding check for null highway after call to getHighwayByRouteNumber.

Fixed in r398.

Note: See TracTickets for help on using tickets.