Skip to content

Commit

Permalink
NYS-168 guard against nulls from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sheldonabrown committed Jul 13, 2023
1 parent 8c1e5c7 commit cca780f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Collections;
import java.util.Set;

/**
Expand Down Expand Up @@ -397,7 +398,8 @@ public State getBackState() {

// record that station was entered
public void markTransitStation(Station station) {
child.transitStationList.add(station);
if (station != null)
child.transitStationList.add(station);
}

// how many stations have been entered
Expand Down

0 comments on commit cca780f

Please sign in to comment.