mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
Modified Autopsy code to take into account that getParentInfo() can now return NULL
This commit is contained in:
parent
b98158111b
commit
efcbbaf0d7
@ -451,7 +451,11 @@ final class IngestTasksScheduler {
|
||||
boolean isInRootDir = false;
|
||||
try {
|
||||
AbstractFile parent = f.getParentDirectory();
|
||||
isInRootDir = parent.isRoot();
|
||||
if (parent == null) {
|
||||
isInRootDir = true;
|
||||
} else {
|
||||
isInRootDir = parent.isRoot();
|
||||
}
|
||||
} catch (TskCoreException ex) {
|
||||
logger.log(Level.WARNING, "Error querying parent directory for" + f.getName(), ex); //NON-NLS
|
||||
}
|
||||
|
@ -398,7 +398,12 @@ final class FileExporter {
|
||||
* Is the NTFS or FAT file in the root directory?
|
||||
*/
|
||||
AbstractFile parent = file.getParentDirectory();
|
||||
boolean isInRootDir = parent.isRoot();
|
||||
boolean isInRootDir;
|
||||
if (parent == null) {
|
||||
isInRootDir = true;
|
||||
} else {
|
||||
isInRootDir = parent.isRoot();
|
||||
}
|
||||
|
||||
/*
|
||||
* Check its meta-address and check its name for the '$' character
|
||||
|
Loading…
x
Reference in New Issue
Block a user