From d24596f11ffb72f437bd474f15368aec6e87178d Mon Sep 17 00:00:00 2001 From: Chumva Date: Thu, 2 Aug 2018 12:41:06 +0300 Subject: [PATCH] fix possible npe --- .../net/osmand/plus/firstusage/FirstUsageWizardFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/firstusage/FirstUsageWizardFragment.java b/OsmAnd/src/net/osmand/plus/firstusage/FirstUsageWizardFragment.java index b2fee4e8da..e352bb0fed 100644 --- a/OsmAnd/src/net/osmand/plus/firstusage/FirstUsageWizardFragment.java +++ b/OsmAnd/src/net/osmand/plus/firstusage/FirstUsageWizardFragment.java @@ -682,7 +682,7 @@ public class FirstUsageWizardFragment extends BaseOsmAndFragment implements OsmA } for (BinaryMapDataObject o : mapDataObjects) { String fullName = osmandRegions.getFullName(o); - if (fullName.length() > selectedFullName.length()) { + if (fullName != null && fullName.length() > selectedFullName.length()) { selectedFullName = fullName; } }