Skip to content

Commit

Permalink
Fix #1609
Browse files Browse the repository at this point in the history
  • Loading branch information
David Emory committed Nov 11, 2014
1 parent e3911a4 commit 237adba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/opentripplanner/index/model/TripShort.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class TripShort {
public String tripHeadsign;
public AgencyAndId serviceId;
public String shapeId;
public int direction;
public Integer direction;

// INCLUDE start and end time, pattern and route in detail version

Expand All @@ -24,7 +24,8 @@ public TripShort (Trip trip) {
serviceId = trip.getServiceId();
AgencyAndId shape = trip.getShapeId();
shapeId = shape == null ? null : shape.getId();
direction = Integer.parseInt(trip.getDirectionId());
String directionId = trip.getDirectionId();
direction = directionId == null ? null : Integer.parseInt(directionId);
}

public static List<TripShort> list (Collection<Trip> in) {
Expand Down

0 comments on commit 237adba

Please sign in to comment.