Skip to content

Commit 697d307

Browse files
tulinkryVladimir Kotal
authored andcommitted
avoiding npe when the index has not been done (#2437)
1 parent 6c85b95 commit 697d307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/web/PageConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,7 @@ public boolean isNotModified(HttpServletRequest request, HttpServletResponse res
16771677
// all project related messages which changes the view
16781678
getProjectMessages(),
16791679
// last timestamp value
1680-
getEnv().getDateForLastIndexRun().getTime(),
1680+
getEnv().getDateForLastIndexRun() != null ? getEnv().getDateForLastIndexRun().getTime() : 0,
16811681
// OpenGrok version has changed since the last time
16821682
Info.getVersion()
16831683
)

0 commit comments

Comments
 (0)