Merge pull request #7535 from kellykelly3/8152-nfe-in-ra

8152 Added check for empty string
This commit is contained in:
eugene7646 2022-01-27 09:18:37 -05:00 committed by GitHub
commit 6d78d25a36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -449,9 +449,12 @@ class Firefox extends Extract {
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) {