Prevent NPE

This commit is contained in:
M66B 2022-06-17 14:52:05 +02:00
parent bb9a62d40e
commit 4177a4e467
1 changed files with 3 additions and 1 deletions

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();