mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add an else case where crash logs are null means there is no crash (#4506)
This commit is contained in:
parent
8793d45f30
commit
ec89a3377a
1 changed files with 4 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package fr.free.nrw.commons.logging;
|
||||
|
||||
import static org.acra.ACRA.getErrorReporter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
|
|
@ -62,6 +64,8 @@ public abstract class LogsSender implements ReportSender {
|
|||
final Uri logFileUri = getZippedLogFileUri(context, report);
|
||||
if (logFileUri != null) {
|
||||
sendEmail(context, logFileUri);
|
||||
} else {
|
||||
getErrorReporter().handleSilentException(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue