mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
fix for validating artifact type
This commit is contained in:
parent
cbd9d96e7b
commit
37b51d0c62
@ -532,11 +532,13 @@ public final class LeappFileProcessor {
|
||||
String comment = nnm.getNamedItem("comment").getNodeValue();
|
||||
String parentName = artifactNlist.item(k).getParentNode().getAttributes().getNamedItem("filename").getNodeValue();
|
||||
|
||||
BlackboardArtifact.ARTIFACT_TYPE foundArtifactType = Stream.of(BlackboardArtifact.ARTIFACT_TYPE.values())
|
||||
.filter((art_type) -> art_type.name().equalsIgnoreCase(artifactName))
|
||||
.findFirst()
|
||||
.orElse(null);
|
||||
|
||||
BlackboardArtifact.ARTIFACT_TYPE foundArtifactType = null;
|
||||
try {
|
||||
Case.getCurrentCase().getSleuthkitCase().getArtifactType(artifactName);
|
||||
} catch (TskCoreException ex) {
|
||||
logger.log(Level.SEVERE, String.format("There was an issue that arose while trying to fetch artifact type for %s.", artifactName), ex);
|
||||
}
|
||||
|
||||
if (foundArtifactType == null) {
|
||||
logger.log(Level.SEVERE, String.format("No known artifact mapping found for [artifact: %s, %s]",
|
||||
artifactName, getXmlFileIdentifier(parentName)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user