mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +00:00
fixes for no person name
This commit is contained in:
parent
eb07f1ebd1
commit
c9103de106
@ -601,8 +601,6 @@ public final class DirectoryTreeTopComponent extends TopComponent implements Dat
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// root = new DirectoryTreeFilterNode(root, true);
|
|
||||||
|
|
||||||
em.setRootContext(root);
|
em.setRootContext(root);
|
||||||
em.getRootContext().setName(currentCase.getName());
|
em.getRootContext().setName(currentCase.getName());
|
||||||
em.getRootContext().setDisplayName(currentCase.getName());
|
em.getRootContext().setDisplayName(currentCase.getName());
|
||||||
|
@ -26,6 +26,7 @@ import java.util.Set;
|
|||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
import org.openide.util.NbBundle;
|
||||||
import org.sleuthkit.autopsy.casemodule.Case;
|
import org.sleuthkit.autopsy.casemodule.Case;
|
||||||
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
|
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
|
||||||
import org.sleuthkit.autopsy.mainui.datamodel.TreeResultsDTO.TreeDisplayCount;
|
import org.sleuthkit.autopsy.mainui.datamodel.TreeResultsDTO.TreeDisplayCount;
|
||||||
@ -109,12 +110,13 @@ public class HostPersonDAO extends AbstractDAO {
|
|||||||
TreeDisplayCount.NOT_SHOWN);
|
TreeDisplayCount.NOT_SHOWN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NbBundle.Messages({"HostPersonDAO_unknownPersons_displayName=Unknown Persons"})
|
||||||
private TreeItemDTO<PersonSearchParams> createPersonTreeItem(Person person) {
|
private TreeItemDTO<PersonSearchParams> createPersonTreeItem(Person person) {
|
||||||
return new TreeItemDTO<>(
|
return new TreeItemDTO<>(
|
||||||
PersonSearchParams.getTypeId(),
|
PersonSearchParams.getTypeId(),
|
||||||
new PersonSearchParams(person),
|
new PersonSearchParams(person),
|
||||||
person == null ? 0 : person.getPersonId(),
|
person == null ? 0 : person.getPersonId(),
|
||||||
person == null ? "" : person.getName(),
|
person == null ? Bundle.HostPersonDAO_unknownPersons_displayName() : person.getName(),
|
||||||
TreeDisplayCount.NOT_SHOWN);
|
TreeDisplayCount.NOT_SHOWN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@ import java.util.Arrays;
|
|||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Optional;
|
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import org.openide.nodes.ChildFactory;
|
import org.openide.nodes.ChildFactory;
|
||||||
@ -54,7 +53,6 @@ import org.sleuthkit.datamodel.Person;
|
|||||||
*
|
*
|
||||||
* Root tree view factories.
|
* Root tree view factories.
|
||||||
*/
|
*/
|
||||||
@Messages({"RootFactory_unknownPersons_displayName=Unknown Persons"})
|
|
||||||
public class RootFactory {
|
public class RootFactory {
|
||||||
|
|
||||||
public static Children getRootChildren() {
|
public static Children getRootChildren() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user