From 42c8e4bb73ad1b0c38efb204ff37b64bbfe25ba1 Mon Sep 17 00:00:00 2001 From: momo Date: Mon, 19 Oct 2015 09:53:28 -0400 Subject: [PATCH] fix equals in sig --- Core/src/org/sleuthkit/autopsy/modules/filetypeid/FileType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/org/sleuthkit/autopsy/modules/filetypeid/FileType.java b/Core/src/org/sleuthkit/autopsy/modules/filetypeid/FileType.java index d8b0c1e74f..f571e673dc 100644 --- a/Core/src/org/sleuthkit/autopsy/modules/filetypeid/FileType.java +++ b/Core/src/org/sleuthkit/autopsy/modules/filetypeid/FileType.java @@ -224,7 +224,7 @@ class FileType { public boolean equals(Object other) { if (other != null && other instanceof Signature) { Signature that = (Signature) other; - if(this.getSignatureBytes() == that.getSignatureBytes() && this.getOffset() == that.getOffset()) + if(Arrays.equals(this.getSignatureBytes(), that.getSignatureBytes()) && this.getOffset() == that.getOffset()) return true; } return false;