diff --git a/src/main/java/org/olat/repository/controllers/RepositoryDetailsController.java b/src/main/java/org/olat/repository/controllers/RepositoryDetailsController.java index 2ec0af50530f162a4893ed8f3630b9f252f92e91..bc5622c4672b1ed0a799da1986c662fa89d79b3e 100644 --- a/src/main/java/org/olat/repository/controllers/RepositoryDetailsController.java +++ b/src/main/java/org/olat/repository/controllers/RepositoryDetailsController.java @@ -281,8 +281,12 @@ public class RepositoryDetailsController extends BasicController implements Gene RepositoryEntryLifecycle cycle = repositoryEntry.getLifecycle(); if(cycle != null) { Formatter format = Formatter.getInstance(getLocale()); - main.contextPut("lfStart", format.formatDate(cycle.getValidFrom())); - main.contextPut("lfEnd", format.formatDate(cycle.getValidTo())); + if(cycle.getValidFrom() != null) { + main.contextPut("lfStart", format.formatDate(cycle.getValidFrom())); + } + if(cycle.getValidTo() != null) { + main.contextPut("lfEnd", format.formatDate(cycle.getValidTo())); + } if(!cycle.isPrivateCycle()) { String label = cycle.getLabel(); String softKey = cycle.getSoftKey();