Fixed NPE in mainMenuActivity

This commit is contained in:
Denis 2014-12-19 13:49:39 +02:00
parent 83911e44b5
commit eb8b15c300

View file

@ -138,7 +138,7 @@ public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca
@Override
public void onScrollChanged() {
int scrollY = mainScroll.getScrollY();
if (previousScroll == scrollY){
if (previousScroll == scrollY || mainScroll.getChildAt(0) == null){
return;
}