Skip to content
Snippets Groups Projects
Commit 466ce462 authored by U-BASIS\dsmyda's avatar U-BASIS\dsmyda
Browse files

Updated blackboard attribute to populate the parent data source ID if it's not specified

parent cc35e816
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ public class BlackboardAttribute { ...@@ -65,7 +65,7 @@ public class BlackboardAttribute {
// The parent data source is defined as being // The parent data source is defined as being
// the data source of the parent artifact. // the data source of the parent artifact.
private long parentDataSourceID; private Long parentDataSourceID;
/** /**
* Constructs a standard attribute with an integer value. The attribute * Constructs a standard attribute with an integer value. The attribute
...@@ -542,6 +542,10 @@ public String getDisplayString() { ...@@ -542,6 +542,10 @@ public String getDisplayString() {
case DATETIME: { case DATETIME: {
try { try {
if (parentDataSourceID == null) {
BlackboardArtifact parent = getParentArtifact();
parentDataSourceID = parent.getDataSourceObjectID();
}
final Content dataSource = sleuthkitCase.getContentById(parentDataSourceID); final Content dataSource = sleuthkitCase.getContentById(parentDataSourceID);
if ((dataSource != null) && (dataSource instanceof Image)) { if ((dataSource != null) && (dataSource instanceof Image)) {
// return the date/time string in the timezone associated with the datasource, // return the date/time string in the timezone associated with the datasource,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment