Skip to content
Snippets Groups Projects
Commit 921bb5f6 authored by srosse's avatar srosse
Browse files

no-jira: hardened the details view of repository entry against inconsistent life-cycles

parent 78b897c9
No related branches found
No related tags found
No related merge requests found
...@@ -281,8 +281,12 @@ public class RepositoryDetailsController extends BasicController implements Gene ...@@ -281,8 +281,12 @@ public class RepositoryDetailsController extends BasicController implements Gene
RepositoryEntryLifecycle cycle = repositoryEntry.getLifecycle(); RepositoryEntryLifecycle cycle = repositoryEntry.getLifecycle();
if(cycle != null) { if(cycle != null) {
Formatter format = Formatter.getInstance(getLocale()); Formatter format = Formatter.getInstance(getLocale());
main.contextPut("lfStart", format.formatDate(cycle.getValidFrom())); if(cycle.getValidFrom() != null) {
main.contextPut("lfEnd", format.formatDate(cycle.getValidTo())); main.contextPut("lfStart", format.formatDate(cycle.getValidFrom()));
}
if(cycle.getValidTo() != null) {
main.contextPut("lfEnd", format.formatDate(cycle.getValidTo()));
}
if(!cycle.isPrivateCycle()) { if(!cycle.isPrivateCycle()) {
String label = cycle.getLabel(); String label = cycle.getLabel();
String softKey = cycle.getSoftKey(); String softKey = cycle.getSoftKey();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment