fix possible npe

(cherry picked from commit d24596f)
This commit is contained in:
Chumva 2018-08-02 12:41:06 +03:00
parent e6ae64877a
commit b700856c14

View file

@ -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;
}
}