Skip to content

Commit 60aaf40

Browse files
committed
add OutOfMemory clause
1 parent 46a03cc commit 60aaf40

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/src/main/java/org/openimis/imispolicies/ClientAndroidInterface.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3967,6 +3967,10 @@ public void startDownloadingMasterData() throws JSONException, UserException, Us
39673967
throw (UserNotAuthenticatedException) e;
39683968
}
39693969
throw new UserException("Error while downloading the master data", e);
3970+
} catch (OutOfMemoryError e){
3971+
Sentry.captureException(e);
3972+
activity.runOnUiThread(() ->
3973+
AndroidUtils.showToast(activity,e.getMessage()));
39703974
}
39713975
}
39723976

0 commit comments

Comments
 (0)