1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 23:12:55 +00:00

Prevent NPE

This commit is contained in:
M66B 2022-06-17 14:52:05 +02:00
parent bb9a62d40e
commit 4177a4e467

View file

@ -2415,7 +2415,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
@Override
public void run() {
try {
if (scrolling && !rvMessage.canScrollVertically(-1)) {
if (scrolling &&
rvMessage != null &&
!rvMessage.canScrollVertically(-1)) {
scrolling = false;
updateCompose();
updateExpanded();