From 646f7199b1300b5b762384ae90d26c68b09c2938 Mon Sep 17 00:00:00 2001 From: Oliver Spohngellert Date: Thu, 28 Jan 2016 10:35:56 -0500 Subject: [PATCH] Fixed blackboard to handle new exception when adding artifact types --- .../sleuthkit/autopsy/casemodule/services/Blackboard.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/services/Blackboard.java b/Core/src/org/sleuthkit/autopsy/casemodule/services/Blackboard.java index 47ece26cc1..72378e7c88 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/services/Blackboard.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/services/Blackboard.java @@ -67,7 +67,7 @@ public final class Blackboard implements Closeable { public BlackboardArtifact.Type addArtifactType(String typeName, String displayName) throws BlackboardException { try { return Case.getCurrentCase().getSleuthkitCase().addBlackboardArtifactType(typeName, displayName); - } catch (TskCoreException ex) { + } catch (TskCoreException | TskDataException ex) { throw new BlackboardException("New artifact type could not be added", ex); } } @@ -85,9 +85,9 @@ public final class Blackboard implements Closeable { try { return Case.getCurrentCase().getSleuthkitCase().addArtifactAttributeType(attrTypeString, valueType, displayName); } catch (TskDataException ex) { - throw new BlackboardException("New artifact type could not be added", ex); + throw new BlackboardException("New attribute type could not be added", ex); } catch (TskCoreException ex) { - throw new BlackboardException("New artifact type could not be added", ex); + throw new BlackboardException("New attribute type could not be added", ex); } }