Merge pull request #5767 from osmandapp/Fixes

Fix possible npe
This commit is contained in:
Alexander Sytnyk 2018-08-02 12:46:59 +03:00 committed by GitHub
commit 99c61498bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -682,7 +682,7 @@ public class FirstUsageWizardFragment extends BaseOsmAndFragment implements OsmA
} }
for (BinaryMapDataObject o : mapDataObjects) { for (BinaryMapDataObject o : mapDataObjects) {
String fullName = osmandRegions.getFullName(o); String fullName = osmandRegions.getFullName(o);
if (fullName.length() > selectedFullName.length()) { if (fullName != null && fullName.length() > selectedFullName.length()) {
selectedFullName = fullName; selectedFullName = fullName;
} }
} }