add equals/hashCode to glide models

Closes #4737
// FREEBIE
This commit is contained in:
Jake McGinty
2015-11-27 14:45:07 -08:00
committed by Moxie Marlinspike
parent e83827ab75
commit 946c43940b
4 changed files with 44 additions and 9 deletions

View File

@@ -129,7 +129,7 @@ public class AttachmentDatabase extends Database {
try {
InputStream generatedStream = thumbnailExecutor.submit(new ThumbnailFetchCallable(masterSecret, attachmentId)).get();
if (generatedStream == null) throw new IOException("No thumbnail stream available: " + attachmentId);
if (generatedStream == null) throw new FileNotFoundException("No thumbnail stream available: " + attachmentId);
else return generatedStream;
} catch (InterruptedException ie) {
throw new AssertionError("interrupted");