fix possible npe

This commit is contained in:
Chumva 2018-08-02 12:41:06 +03:00
parent 67b8a90ef3
commit d24596f11f

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