Skip to content

Commit

Permalink
LSNBLDR-800 - Stacktrace when viewing a page that doesn't have a vali…
Browse files Browse the repository at this point in the history
…d sakaiId (sakaiproject#4256)
  • Loading branch information
jonespm authored Apr 15, 2017
1 parent 9323e0c commit 16c2f9e
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1551,11 +1551,13 @@ else if (forum.notPublished())
itemGroupString = simplePageBean.getItemGroupString(i, null, true);
UIOutput.make(tableRow, "item-groups", itemGroupString);
SimplePage sPage = simplePageBean.getPage(Long.parseLong(i.getSakaiId()));
Date rDate = sPage.getReleaseDate();
String rDateString = "";
if(rDate != null)
rDateString = rDate.toString();
UIOutput.make(tableRow, "subpagereleasedate", rDateString);
if (sPage != null) {
Date rDate = sPage.getReleaseDate();
String rDateString = "";
if(rDate != null)
rDateString = rDate.toString();
UIOutput.make(tableRow, "subpagereleasedate", rDateString);
}
} else if (i.getType() == SimplePageItem.RESOURCE) {
try {
itemGroupString = simplePageBean.getItemGroupStringOrErr(i, null, true);
Expand Down

0 comments on commit 16c2f9e

Please sign in to comment.