mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Merge pull request #7285 from markmckinnon/8008-IllegalArgumentException-in-RA-ExtractZoneIdentifier-module
8008-IllegalArgumentException-in-RA-ExtractZoneIdentifier-module
This commit is contained in:
commit
6817e73266
@ -318,7 +318,13 @@ final class ExtractZoneIdentifier extends Extract {
|
||||
*/
|
||||
ZoneIdentifierInfo(AbstractFile zoneFile) throws IOException {
|
||||
fileName = zoneFile.getName();
|
||||
properties.load(new ReadContentInputStream(zoneFile));
|
||||
// properties.load will throw IllegalArgument if unicode characters are found in the zone file.
|
||||
try {
|
||||
properties.load(new ReadContentInputStream(zoneFile));
|
||||
} catch (IllegalArgumentException ex) {
|
||||
String message = String.format("Unable to parse Zone Id for File %s", fileName); //NON-NLS
|
||||
LOG.log(Level.WARNING, message);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user