diff --git a/source/net/filebot/format/MediaBindingBean.java b/source/net/filebot/format/MediaBindingBean.java index 78753417..38db3187 100644 --- a/source/net/filebot/format/MediaBindingBean.java +++ b/source/net/filebot/format/MediaBindingBean.java @@ -181,7 +181,11 @@ public class MediaBindingBean { @Define("age") public Number getAgeInDays() { - return TimeUnit.MILLISECONDS.toDays(System.currentTimeMillis() - getReleaseDate().getTimeStamp()); + SimpleDate releaseDate = getReleaseDate(); + if (releaseDate != null) { + return TimeUnit.MILLISECONDS.toDays(System.currentTimeMillis() - releaseDate.getTimeStamp()); + } + return null; } @Define("startdate")