From eb8b15c300a6433b14d176650fe2f69b779c72c8 Mon Sep 17 00:00:00 2001 From: Denis Date: Fri, 19 Dec 2014 13:49:39 +0200 Subject: [PATCH] Fixed NPE in mainMenuActivity --- OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java b/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java index 300d60e521..ad1e1fac35 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java @@ -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; }