Changeset 398 in tmcsimulator for trunk/src


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

Fix defect 118, add test case that reveals defect.

Location:
trunk/src
Files:
2 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 
  • trunk/src/tmcsim/application.properties

    r393 r398  
    1 #Tue, 23 Apr 2019 10:12:23 -0700 
     1#Thu, 25 Apr 2019 16:57:59 -0700 
    22 
    3 Application.revision=391 
     3Application.revision=397 
    44 
    5 Application.buildnumber=136 
     5Application.buildnumber=137 
Note: See TracChangeset for help on using the changeset viewer.