mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
fix
This commit is contained in:
parent
c41f2a2255
commit
dbc0fba5bc
@ -160,7 +160,9 @@ abstract class Extract {
|
|||||||
*/
|
*/
|
||||||
BlackboardArtifact createArtifactWithAttributes(BlackboardArtifact.Type type, Content content, Collection<BlackboardAttribute> attributes) throws TskCoreException {
|
BlackboardArtifact createArtifactWithAttributes(BlackboardArtifact.Type type, Content content, Collection<BlackboardAttribute> attributes) throws TskCoreException {
|
||||||
if (type.getCategory() == BlackboardArtifact.Category.DATA_ARTIFACT) {
|
if (type.getCategory() == BlackboardArtifact.Category.DATA_ARTIFACT) {
|
||||||
return content.newDataArtifact(type, attributes);
|
return (content instanceof AbstractFile)
|
||||||
|
? ((AbstractFile) content).newDataArtifact(type, attributes)
|
||||||
|
: content.newDataArtifact(type, attributes, null);
|
||||||
} else {
|
} else {
|
||||||
BlackboardArtifact bbart = content.newArtifact(type.getTypeID());
|
BlackboardArtifact bbart = content.newArtifact(type.getTypeID());
|
||||||
bbart.addAttributes(attributes);
|
bbart.addAttributes(attributes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user