mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
fix for save license
This commit is contained in:
parent
9b59d2c658
commit
404284cdfc
@ -56,11 +56,7 @@ public class CTLicensePersistence {
|
|||||||
File licenseFile = getCTLicenseFile();
|
File licenseFile = getCTLicenseFile();
|
||||||
try {
|
try {
|
||||||
licenseFile.getParentFile().mkdirs();
|
licenseFile.getParentFile().mkdirs();
|
||||||
if (licenseResponse != null) {
|
|
||||||
objectMapper.writeValue(licenseFile, licenseResponse);
|
objectMapper.writeValue(licenseFile, licenseResponse);
|
||||||
} else if (licenseFile.exists()) {
|
|
||||||
Files.delete(licenseFile.toPath());
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
logger.log(Level.WARNING, "There was an error writing CyberTriage license to file: " + licenseFile.getAbsolutePath(), ex);
|
logger.log(Level.WARNING, "There was an error writing CyberTriage license to file: " + licenseFile.getAbsolutePath(), ex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user