Skip to content

Commit

Permalink
Update passenger watchlist timestamp to null check on hit count.
Browse files Browse the repository at this point in the history
  • Loading branch information
originalname51 committed May 29, 2019
1 parent dd24909 commit 1aef863
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,10 @@ public PassengersPageDto getPassengersByCriteria(Long flightId, PassengersReques
}
}
}
if (p.getPassengerWLTimestamp() != null && p.getPassengerWLTimestamp().getHitCount() > 0) {
vo.setOnWatchListLink(true);
if (p.getPassengerWLTimestamp() != null
&& p.getPassengerWLTimestamp().getHitCount() != null
&& p.getPassengerWLTimestamp().getHitCount() > 0) {
vo.setOnWatchListLink(true);
}

// grab flight info
Expand Down

0 comments on commit 1aef863

Please sign in to comment.