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;
|
boolean isInRootDir = false;
|
||||||
try {
|
try {
|
||||||
AbstractFile parent = f.getParentDirectory();
|
AbstractFile parent = f.getParentDirectory();
|
||||||
|
if (parent == null) {
|
||||||
|
isInRootDir = true;
|
||||||
|
} else {
|
||||||
isInRootDir = parent.isRoot();
|
isInRootDir = parent.isRoot();
|
||||||
|
}
|
||||||
} catch (TskCoreException ex) {
|
} catch (TskCoreException ex) {
|
||||||
logger.log(Level.WARNING, "Error querying parent directory for" + f.getName(), ex); //NON-NLS
|
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?
|
* Is the NTFS or FAT file in the root directory?
|
||||||
*/
|
*/
|
||||||
AbstractFile parent = file.getParentDirectory();
|
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
|
* Check its meta-address and check its name for the '$' character
|
||||||
|
Loading…
x
Reference in New Issue
Block a user