Merge branch 'sleuthkit:develop' into develop

This commit is contained in:
Seb2lyon 2021-06-08 17:48:52 +02:00
commit bc87256339

View File

@ -349,11 +349,7 @@ public abstract class AbstractContentNode<T extends Content> extends ContentNode
protected Pair<Score, String> getScorePropertyAndDescription(List<Tag> tags) { protected Pair<Score, String> getScorePropertyAndDescription(List<Tag> tags) {
Score score = Score.SCORE_UNKNOWN; Score score = Score.SCORE_UNKNOWN;
try { try {
if (content instanceof AnalysisResult) { score = this.content.getAggregateScore();
score = ((AnalysisResult) content).getScore();
} else {
score = this.content.getAggregateScore();
}
} catch (TskCoreException ex) { } catch (TskCoreException ex) {
logger.log(Level.WARNING, "Unable to get aggregate score for content with id: " + this.content.getId(), ex); logger.log(Level.WARNING, "Unable to get aggregate score for content with id: " + this.content.getId(), ex);
} }