kopia lustrzana https://github.com/ryukoposting/Signal-Android
check if image decoding succeeded before using the result
Fixes #6061 Closes #6080 // FREEBIEfork-5.53.8
rodzic
21a0fe3a48
commit
4461ebf662
|
@ -59,6 +59,10 @@ public class BitmapUtil {
|
|||
constraints.getImageMaxHeight(context),
|
||||
DecodeFormat.PREFER_RGB_565);
|
||||
|
||||
if (scaledBitmap == null) {
|
||||
throw new BitmapDecodingException("Unable to decode image");
|
||||
}
|
||||
|
||||
try {
|
||||
do {
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
|
|
Ładowanie…
Reference in New Issue