mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-25 06:09:18 +00:00
committed by
Moxie Marlinspike
parent
e83827ab75
commit
946c43940b
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user