Prevent crash

This commit is contained in:
M66B 2021-09-19 22:27:26 +02:00
parent 040b0acb29
commit 0f45a283d1
2 changed files with 8 additions and 2 deletions

View File

@ -4,6 +4,10 @@
### [Yaverlandia](https://en.wikipedia.org/wiki/Yaverlandia)
### 1.1729
* Added miscellaneous option to disable showing the changelog
### 1.1728
* Prevent suggesting spam contacts

View File

@ -1853,10 +1853,12 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
});
for (TupleOperationEx.PartitionKey key : keys) {
int ops;
synchronized (partitions) {
ops = partitions.get(key).size();
Log.i(folder.name +
" queuing partition=" + key +
" operations=" + partitions.get(key).size());
" operations=" + ops);
}
final long serial = state.getSerial();
@ -1865,7 +1867,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
crumb.put("account", folder.account == null ? null : Long.toString(folder.account));
crumb.put("folder", folder.name + "/" + folder.type + ":" + folder.id);
crumb.put("partition", key.toString());
crumb.put("operations", Integer.toString(partitions.get(key).size()));
crumb.put("operations", Integer.toString(ops));
crumb.put("serial", Long.toString(serial));
Log.breadcrumb("Queuing", crumb);