mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 08:26:15 +00:00
7751 restore basic null check in stead of isBlank
This commit is contained in:
parent
31f1c49347
commit
f39603d466
@ -23,7 +23,6 @@ import java.util.List;
|
||||
import java.util.logging.Level;
|
||||
import org.sleuthkit.autopsy.coreutils.Logger;
|
||||
import javax.swing.JPanel;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.openide.util.NbBundle.Messages;
|
||||
import org.openide.util.lookup.ServiceProvider;
|
||||
import org.sleuthkit.autopsy.casemodule.Case;
|
||||
@ -167,7 +166,7 @@ public class SaveTaggedHashesToHashDb implements GeneralReportModule {
|
||||
// TODO: Currently only AbstractFiles have md5 hashes. Here only files matter.
|
||||
Content content = tag.getContent();
|
||||
if (content instanceof AbstractFile) {
|
||||
if (!StringUtils.isBlank(((AbstractFile) content).getMd5Hash())) {
|
||||
if (null != ((AbstractFile) content).getMd5Hash()) {
|
||||
try {
|
||||
hashSet.addHashes(tag.getContent(), openCase.getDisplayName());
|
||||
} catch (TskCoreException ex) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user