mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 08:56:15 +00:00
Merge pull request #5671 from gdicristofaro/6091-NPE-in-log-from-TSK_DATA_SOURCE_USAGE
use content by id to fetch display name for BlackboardArtifactNode
This commit is contained in:
commit
146e3661a9
@ -323,7 +323,8 @@ public class BlackboardArtifactNode extends AbstractContentNode<BlackboardArtifa
|
||||
|
||||
if (displayName.isEmpty() && artifact != null) {
|
||||
try {
|
||||
displayName = Case.getCurrentCaseThrows().getSleuthkitCase().getAbstractFileById(this.artifact.getObjectID()).getName();
|
||||
Content content = Case.getCurrentCaseThrows().getSleuthkitCase().getContentById(this.artifact.getObjectID());
|
||||
displayName = (content == null) ? artifact.getName() : content.getName();
|
||||
} catch (TskCoreException | NoCurrentCaseException ex) {
|
||||
displayName = artifact.getName();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user