From 049c16f0e5203fab9a3aa1a32295d6b60a8ba7dc Mon Sep 17 00:00:00 2001 From: Kelly Kelly <kelly@basistech.com> Date: Wed, 26 Jan 2022 14:57:23 -0500 Subject: [PATCH] Added check for empty string --- .../org/sleuthkit/autopsy/recentactivity/Firefox.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Firefox.java b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Firefox.java index c3ff5017fe..163feec22d 100644 --- a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Firefox.java +++ b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/Firefox.java @@ -449,9 +449,12 @@ private void getCookie(long ingestJobId) { NbBundle.getMessage(this.getClass(), "Firefox.moduleName"))); if (checkColumn == true) { - bbattributes.add(new BlackboardAttribute(ATTRIBUTE_TYPE.TSK_DATETIME_CREATED, - RecentActivityExtracterModuleFactory.getModuleName(), - (Long.valueOf(result.get("creationTime").toString())))); //NON-NLS + String value = result.get("creationTime").toString(); + if(value != null && !value.isEmpty()) { + bbattributes.add(new BlackboardAttribute(ATTRIBUTE_TYPE.TSK_DATETIME_CREATED, + RecentActivityExtracterModuleFactory.getModuleName(), + (Long.valueOf(result.get("creationTime").toString())))); //NON-NLS + } } String domain = extractDomain(host); if (domain != null && domain.isEmpty() == false) { -- GitLab