From 2afb4f44f54318833ff2678714ffa383fcdaca02 Mon Sep 17 00:00:00 2001 From: Eugene Livis <elivis@basistech.com> Date: Wed, 9 Aug 2017 17:25:04 -0400 Subject: [PATCH] Minor --- .../src/org/sleuthkit/autopsy/keywordsearch/RegexQuery.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/RegexQuery.java b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/RegexQuery.java index b8237a47b1..45205b0ca7 100644 --- a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/RegexQuery.java +++ b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/RegexQuery.java @@ -319,11 +319,11 @@ private List<KeywordHit> createKeywordHits(SolrDocument solrDoc) throws TskCoreE } catch (TskCoreException ex) { throw ex; } catch (Throwable error) { - /* NOTE: Matcher.find() is known to throw StackOverflowError in rare cases (see story 2700). + /* NOTE: Matcher.find() is known to throw StackOverflowError in rare cases (see JIRA-2700). StackOverflowError is an error, not an exception, and therefore needs to be caught as a Throwable. When this occurs we should re-throw the error as TskCoreException so that it is logged by the calling method and move on to the next Solr document. */ - throw new TskCoreException("Failed to create keyword hits for Solr documet id " + docId + " due to " + error.getMessage()); + throw new TskCoreException("Failed to create keyword hits for Solr document id " + docId + " due to " + error.getMessage()); } return hits; } -- GitLab