mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-24 15:31:46 +00:00
Check result of bitmap size operation for failure
Fixes #5046 // FREEBIE
This commit is contained in:
@@ -11,6 +11,7 @@ import org.thoughtcrime.securesms.database.GroupDatabase;
|
||||
import org.thoughtcrime.securesms.jobs.requirements.MasterSecretRequirement;
|
||||
import org.thoughtcrime.securesms.mms.AttachmentStreamUriLoader.AttachmentModel;
|
||||
import org.thoughtcrime.securesms.push.TextSecurePushTrustStore;
|
||||
import org.thoughtcrime.securesms.util.BitmapDecodingException;
|
||||
import org.thoughtcrime.securesms.util.BitmapUtil;
|
||||
import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
||||
import org.whispersystems.jobqueue.JobParameters;
|
||||
@@ -63,7 +64,7 @@ public class AvatarDownloadJob extends MasterSecretJob {
|
||||
|
||||
database.updateAvatar(groupId, avatar);
|
||||
}
|
||||
} catch (ExecutionException | NonSuccessfulResponseCodeException e) {
|
||||
} catch (BitmapDecodingException | NonSuccessfulResponseCodeException e) {
|
||||
Log.w(TAG, e);
|
||||
} finally {
|
||||
if (attachment != null)
|
||||
|
||||
Reference in New Issue
Block a user