Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

File comparison switched to .equals method.

  • Loading branch information...
commit 91f87f03f39be39e70d6d2b7bff8c4030e1b7047 1 parent fe81363
dhurd authored
View
10 HashDatabase/src/org/sleuthkit/autopsy/hashdatabase/HashDbSearchAction.java
@@ -97,13 +97,9 @@ public void performAction() {
// Get the map of hashes to FsContent and send it to the manager
List<FsContent> files = HashDbSearcher.findFilesByMd5(fsContent.getMd5Hash());
for(int i=0; i<files.size(); i++) {
- try {
- // If they are the same file, remove it from the list
- if(files.get(i).getUniquePath().equals(fsContent.getUniquePath())) {
- files.remove(i);
- }
- } catch (TskCoreException ex) {
- Exceptions.printStackTrace(ex);
+ // If they are the same file, remove it from the list
+ if(files.get(i).equals(fsContent)) {
+ files.remove(i);
}
}
if(!files.isEmpty()) {
Please sign in to comment.
Something went wrong with that request. Please try again.