Skip to content

Commit d16ad2b

Browse files
committed
make sure entry is not null
1 parent 966ba8d commit d16ad2b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

opengrok-web/src/main/webapp/history.jsp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,14 @@ document.domReady.push(function() {domReadyHistory();});
258258
<%
259259
int count=0;
260260
for (HistoryEntry entry : hist.getHistoryEntries(maxItems, startIndex)) {
261-
final String dispRev = Optional.ofNullable(entry).
262-
map(HistoryEntry::getDisplayRevision).
261+
if (Objects.isNull(entry)) {
262+
continue;
263+
}
264+
265+
final String dispRev = Optional.ofNullable(entry.getDisplayRevision()).
263266
map(Util::htmlize).
264267
orElse("");
265-
final String rev = Optional.ofNullable(entry).
266-
map(HistoryEntry::getRevision).
268+
final String rev = Optional.ofNullable(entry.getRevision()).
267269
orElse("");
268270
269271
String tags = hist.getTags().get(rev);

0 commit comments

Comments
 (0)