mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Update ExtractRegistry.java
Check for empty string and if it is empty do not add the attribute. Format the block of code.
This commit is contained in:
parent
685c7a3768
commit
3c8f91dfa2
@ -783,9 +783,14 @@ class ExtractRegistry extends Extract {
|
|||||||
break;
|
break;
|
||||||
case "usb": //NON-NLS
|
case "usb": //NON-NLS
|
||||||
try {
|
try {
|
||||||
Long usbMtime = Long.parseLong(artnode.getAttribute("mtime")); //NON-NLS
|
Long usbMtime = Long.valueOf("0");
|
||||||
|
if (!artnode.getAttribute("mtime").isEmpty()) {
|
||||||
|
usbMtime = Long.parseLong(artnode.getAttribute("mtime")); //NON-NLS
|
||||||
|
}
|
||||||
usbMtime = Long.valueOf(usbMtime.toString());
|
usbMtime = Long.valueOf(usbMtime.toString());
|
||||||
|
if (usbMtime > 0) {
|
||||||
bbattributes.add(new BlackboardAttribute(ATTRIBUTE_TYPE.TSK_DATETIME, parentModuleName, usbMtime));
|
bbattributes.add(new BlackboardAttribute(ATTRIBUTE_TYPE.TSK_DATETIME, parentModuleName, usbMtime));
|
||||||
|
}
|
||||||
String dev = artnode.getAttribute("dev"); //NON-NLS
|
String dev = artnode.getAttribute("dev"); //NON-NLS
|
||||||
String make = "";
|
String make = "";
|
||||||
String model = dev;
|
String model = dev;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user