RaceLogic no longer uses AnimationTimer for its main loop (since that ran in javafx thread).
This commit is contained in:
@@ -174,7 +174,7 @@ public class VisualiserBoat extends Boat {
|
||||
*/
|
||||
public String getTimeToNextMarkFormatted(ZonedDateTime currentTime) {
|
||||
|
||||
if (getTimeAtLastMark() != null) {
|
||||
if ((getTimeAtLastMark() != null) && (currentTime != null)) {
|
||||
//Calculate time delta.
|
||||
Duration timeUntil = Duration.between(currentTime, getEstimatedTimeAtNextMark());
|
||||
|
||||
@@ -213,7 +213,7 @@ public class VisualiserBoat extends Boat {
|
||||
*/
|
||||
public String getTimeSinceLastMarkFormatted(ZonedDateTime currentTime) {
|
||||
|
||||
if (getTimeAtLastMark() != null) {
|
||||
if ((getTimeAtLastMark() != null) && (currentTime != null)) {
|
||||
//Calculate time delta.
|
||||
Duration timeSince = Duration.between(getTimeAtLastMark(), currentTime);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user