fix: NPE when fragment is empty and HomeTabFragment is checking isScrolledToTop()

This commit is contained in:
LucasGGamerM
2023-03-18 13:53:02 -03:00
parent 14665c9a24
commit 3178b5f41c

View File

@@ -633,7 +633,7 @@ public abstract class BaseStatusListFragment<T extends DisplayItemsParent> exten
@Override
public boolean isScrolledToTop() {
return list.getChildAt(0).getTop() == 0;
return list.getChildAt(0) == null || list.getChildAt(0).getTop() == 0;
}
protected int getListWidthForMediaLayout(){