From ae4158b02e2c3d967629e279323863ccd4f6046d Mon Sep 17 00:00:00 2001 From: APriestman Date: Tue, 2 Jun 2015 11:35:25 -0400 Subject: [PATCH] Switched call to getStringTime to use dataSource instead of abstractFile to avoid a possible null pointer exception --- .../org/sleuthkit/autopsy/keywordsearch/SolrSearchService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/SolrSearchService.java b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/SolrSearchService.java index eca676ec3a..061a7f872d 100644 --- a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/SolrSearchService.java +++ b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/SolrSearchService.java @@ -96,7 +96,8 @@ public class SolrSearchService implements KeywordSearchService { || attribute.getAttributeTypeID() == BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DATETIME_SENT.getTypeID() || attribute.getAttributeTypeID() == BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DATETIME_START.getTypeID() || attribute.getAttributeTypeID() == BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DATETIME_END.getTypeID()) { - artifactContents.append(ContentUtils.getStringTime(attribute.getValueLong(), abstractFile)); + + artifactContents.append(ContentUtils.getStringTime(attribute.getValueLong(), dataSource)); } else artifactContents.append(attribute.getDisplayString());