Skip to content

Commit d0c7a95

Browse files
committed
avoid passing null history to completeAnnotationWithHistory()
1 parent 5a2445d commit d0c7a95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/HistoryGuru.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,9 @@ public Annotation annotate(File file, @Nullable String rev, boolean fallback) th
355355
private void completeAnnotationWithHistory(File file, Annotation annotation, Repository repo) {
356356
try {
357357
History history = getHistory(file);
358-
completeAnnotationWithHistory(annotation, history, repo);
358+
if (history != null) {
359+
completeAnnotationWithHistory(annotation, history, repo);
360+
}
359361
} catch (HistoryException ex) {
360362
LOGGER.log(Level.WARNING, "Cannot get messages for tooltip: ", ex);
361363
}

0 commit comments

Comments
 (0)