Prevent NPE

pull/208/head
M66B 3 years ago
parent bb9a62d40e
commit 4177a4e467

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

Loading…
Cancel
Save