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()) {
|
||||
filename = cursor.getString(0);
|
||||
}
|
||||
} catch (final SecurityException | IllegalArgumentException e) {
|
||||
} catch (final Exception e) {
|
||||
filename = null;
|
||||
}
|
||||
if (filename == null) {
|
||||
|
|
|
@ -256,7 +256,11 @@ public class MessageArchiveService implements OnAdvancedStreamFeaturesLoaded {
|
|||
//do nothing
|
||||
} else {
|
||||
Log.d(Config.LOGTAG, a.getJid().asBareJid().toString() + ": error executing mam: " + p.toString());
|
||||
finalizeQuery(query, true);
|
||||
try {
|
||||
finalizeQuery(query, true);
|
||||
} catch (final IllegalStateException e) {
|
||||
//ignored
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue