diff --git a/core/src/main/java/org/lflang/TimeValue.java b/core/src/main/java/org/lflang/TimeValue.java index ae35b30f84..e7e11a6a19 100644 --- a/core/src/main/java/org/lflang/TimeValue.java +++ b/core/src/main/java/org/lflang/TimeValue.java @@ -114,6 +114,11 @@ private static long makeNanosecs(long time, TimeUnit unit) { /** Returns whether this time value is earlier than another. */ public boolean isEarlierThan(TimeValue other) { + if (this == NEVER && other != NEVER) { + return true; + } else if (this != NEVER && other == NEVER) { + return false; + } return this.compareTo(other) < 0; }