Changeset 398 in tmcsimulator for trunk/src/atmsdriver


Ignore:
Timestamp:
04/25/2019 03:28:43 PM (7 years ago)
Author:
jdalbey
Message:

Fix defect 118, add test case that reveals defect.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/atmsdriver/model/Highways.java

    r353 r398  
    176176        // Get the highway by route number 
    177177        Highway highway = getHighwayByRouteNumber(routeNumber); 
     178        // This check added to fix defect #118. Handles situation when the  
     179        // events file specifies a highway that doesn't exist in the network. 
    178180        if (highway == null) 
    179181        { 
     
    196198            startPost = postmile; 
    197199            endPost = postmile + range; 
    198             //TODO: Catch NPE exception for situation when the events file  
    199             //   specifies a highway that doesn't exist in the network. 
    200             //   Also the case where a desired postmile to color isn't in 
    201             //   the network.  Ticket 118 
    202200            // iterate through the stations, if within the specified highway 
    203201            // stretch, update the station by direction and apply dot color 
Note: See TracChangeset for help on using the changeset viewer.