Ticket #118 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.

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.