Prevent crash when reading cursor in DirectoryHelper.

The cause of the crash is very unclear. Our best guess at present is
that the cursor is unable to fit a single row within the 2mb allocation
window, and therefore can't read anything. In this case, the best we can
do is catch the exception and develop some future fallback. Logging the
exception will also mean that maybe we'll be able to get the actual
exception message.
fork-5.53.8
Greyson Parrelli 2021-04-05 15:52:30 -04:00 zatwierdzone przez GitHub
rodzic dbc5f5bfcc
commit b8cbcfe986
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -378,7 +378,8 @@ public class DirectoryHelper {
contactHolder.commit(handle);
}
} catch (IllegalStateException e) {
Log.w(TAG, "Hit an issue with the cursor while reading!", e);
} finally {
handle.finish();
}