diff --git a/common/src/main/java/com/genexus/CommonUtil.java b/common/src/main/java/com/genexus/CommonUtil.java index 42af5b2e8..42d3bca55 100644 --- a/common/src/main/java/com/genexus/CommonUtil.java +++ b/common/src/main/java/com/genexus/CommonUtil.java @@ -1599,6 +1599,10 @@ public static int age(Date fn, Date today) { Date fnDate = resetTime(fn); Date todayDate = resetTime(today); + Date sentinel = newNullDate(); + if (fnDate.equals(sentinel) || todayDate.equals(sentinel)) { + return 0; + } int age = 0; int multiplier = 1;