catch two rare exceptions to fix crash
This commit is contained in:
parent
5943f1ad3e
commit
36756fbd41
|
@ -722,7 +722,7 @@ public class FileBackend {
|
||||||
if (cursor != null && cursor.moveToFirst()) {
|
if (cursor != null && cursor.moveToFirst()) {
|
||||||
filename = cursor.getString(0);
|
filename = cursor.getString(0);
|
||||||
}
|
}
|
||||||
} catch (final SecurityException | IllegalArgumentException e) {
|
} catch (final Exception e) {
|
||||||
filename = null;
|
filename = null;
|
||||||
}
|
}
|
||||||
if (filename == null) {
|
if (filename == null) {
|
||||||
|
|
|
@ -256,7 +256,11 @@ public class MessageArchiveService implements OnAdvancedStreamFeaturesLoaded {
|
||||||
//do nothing
|
//do nothing
|
||||||
} else {
|
} else {
|
||||||
Log.d(Config.LOGTAG, a.getJid().asBareJid().toString() + ": error executing mam: " + p.toString());
|
Log.d(Config.LOGTAG, a.getJid().asBareJid().toString() + ": error executing mam: " + p.toString());
|
||||||
|
try {
|
||||||
finalizeQuery(query, true);
|
finalizeQuery(query, true);
|
||||||
|
} catch (final IllegalStateException e) {
|
||||||
|
//ignored
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue