diff --git a/Core/src/org/sleuthkit/autopsy/modules/leappanalyzers/LeappFileProcessor.java b/Core/src/org/sleuthkit/autopsy/modules/leappanalyzers/LeappFileProcessor.java index 1776e1c3e9..00f4c58c40 100644 --- a/Core/src/org/sleuthkit/autopsy/modules/leappanalyzers/LeappFileProcessor.java +++ b/Core/src/org/sleuthkit/autopsy/modules/leappanalyzers/LeappFileProcessor.java @@ -407,7 +407,8 @@ public final class LeappFileProcessor { } } else if (attrType.matches("LONG")) { try { - bbattributes.add(new BlackboardAttribute(attributeType, MODULE_NAME, (long)Double.parseDouble(columnValue))); + // parse as double to handle values of format like '21.0' and then convert to long + bbattributes.add(new BlackboardAttribute(attributeType, MODULE_NAME, Double.valueOf(columnValue).longValue())); } catch (NumberFormatException ex) { logger.log(Level.WARNING, String.format("Unable to format %s as an long.", columnValue), ex); }