Prevent crash

This commit is contained in:
M66B
2020-07-08 14:12:04 +02:00
parent 77130c5e08
commit b7dba612ba
2 changed files with 22 additions and 1 deletions

View File

@@ -542,7 +542,11 @@ final class PagedStorage<T> extends AbstractList<T> {
// OK only if existing single page, and it's the last one
if (!onlyEndPagePresent && !addingLastPage) {
throw new IllegalArgumentException("page introduces incorrect tiling");
eu.faircode.email.Log.e("Insert page" +
" size=" + newPageSize + "/" + mPageSize +
" last=" + addingLastPage + " only=" + onlyEndPagePresent);
return;
//throw new IllegalArgumentException("page introduces incorrect tiling");
}
if (onlyEndPagePresent) {
mPageSize = newPageSize;