Prevent crash

This commit is contained in:
M66B 2022-04-17 11:17:14 +02:00
parent d4b48bceda
commit e2febdf1d4
1 changed files with 9 additions and 5 deletions

View File

@ -5336,11 +5336,15 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
view.post(new Runnable() {
@Override
public void run() {
if (selectionTracker == null)
return;
selectionTracker.clearSelection();
for (long id : ids)
selectionTracker.select(id);
try {
if (selectionTracker == null)
return;
selectionTracker.clearSelection();
for (long id : ids)
selectionTracker.select(id);
} catch (Throwable ex) {
Log.e(ex);
}
}
});
}