Skip to content

Commit

Permalink
fix(android): try/catch in ti.blob loadBitmapInfo (#13653)
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Nov 26, 2022
1 parent cbfd4c3 commit 569a3e0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,11 @@ public void loadBitmapInfo()

switch (type) {
case TYPE_FILE:
BitmapFactory.decodeStream(getInputStream(), null, opts);
try {
BitmapFactory.decodeStream(getInputStream(), null, opts);
} catch (Exception e) {
Log.e(TAG, "Error decoding stream: " + e.getMessage());
}
break;
case TYPE_DATA:
byte[] byteArray = (byte[]) data;
Expand Down

0 comments on commit 569a3e0

Please sign in to comment.