Update LeappFileProcessor.java

Fix merge conflict
This commit is contained in:
Mark McKinnon 2021-01-20 11:39:17 -05:00
parent 980629494e
commit d42603f830

View File

@ -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);
}