Skip to content

Commit 8a0329c

Browse files
committed
catch一个内存溢出问题
1 parent a36bcfd commit 8a0329c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/com/hippo/ehviewer/spider/SpiderQueen.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,9 @@ public void run() {
17931793
if (is != null) {
17941794
try {
17951795
image = Image.decode((FileInputStream) is, false);
1796-
} finally {
1796+
}catch (OutOfMemoryError e){
1797+
FirebaseCrashlytics.getInstance().recordException(e);
1798+
}finally {
17971799
try {
17981800
is.close();
17991801
} catch (IOException e) {

0 commit comments

Comments
 (0)