Browse files

File comparison switched to .equals method.

  • Loading branch information...
1 parent fe81363 commit 91f87f03f39be39e70d6d2b7bff8c4030e1b7047 dhurd committed Aug 3, 2012
Showing with 3 additions and 7 deletions.
  1. +3 −7 HashDatabase/src/org/sleuthkit/autopsy/hashdatabase/HashDbSearchAction.java
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()) {

0 comments on commit 91f87f0

Please sign in to comment.