mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +00:00
Call getUniquePath in constructor
This commit is contained in:
parent
569ab1e3c3
commit
e8dc79d815
@ -95,6 +95,16 @@ public abstract class AbstractAbstractFileNode<T extends AbstractFile> extends A
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
//See JIRA-5971
|
||||||
|
//Attempt to cache file path during construction of this UI component.
|
||||||
|
this.content.getUniquePath();
|
||||||
|
} catch (TskCoreException ex) {
|
||||||
|
logger.log(Level.SEVERE, String.format("Failed attempt to cache the "
|
||||||
|
+ "unique path of the abstract file instance. Name: %s (objID=%d)",
|
||||||
|
this.content.getName(), this.content.getId()), ex);
|
||||||
|
}
|
||||||
|
|
||||||
if (UserPreferences.displayTranslatedFileNames()) {
|
if (UserPreferences.displayTranslatedFileNames()) {
|
||||||
backgroundTasksPool.submit(new TranslationTask(
|
backgroundTasksPool.submit(new TranslationTask(
|
||||||
new WeakReference<>(this), weakPcl));
|
new WeakReference<>(this), weakPcl));
|
||||||
|
@ -194,6 +194,16 @@ public class BlackboardArtifactNode extends AbstractContentNode<BlackboardArtifa
|
|||||||
for (Content lookupContent : this.getLookup().lookupAll(Content.class)) {
|
for (Content lookupContent : this.getLookup().lookupAll(Content.class)) {
|
||||||
if ((lookupContent != null) && (!(lookupContent instanceof BlackboardArtifact))) {
|
if ((lookupContent != null) && (!(lookupContent instanceof BlackboardArtifact))) {
|
||||||
this.associated = lookupContent;
|
this.associated = lookupContent;
|
||||||
|
|
||||||
|
try {
|
||||||
|
//See JIRA-5971
|
||||||
|
//Attempt to cache file path during construction of this UI component.
|
||||||
|
this.associated.getUniquePath();
|
||||||
|
} catch (TskCoreException ex) {
|
||||||
|
logger.log(Level.SEVERE, String.format("Failed attempt to cache the "
|
||||||
|
+ "unique path of the associated content instance. Name: %s (objID=%d)",
|
||||||
|
this.associated.getName(), this.associated.getId()), ex);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user