Fix first usage wizard

This commit is contained in:
Alexey Kulish 2016-11-24 12:05:59 +03:00
parent 6fc0ce85e7
commit 76736312db

View file

@ -311,7 +311,9 @@ public class FirstUsageWizardFragment extends Fragment implements OsmAndLocation
view.findViewById(R.id.map_downloading_action_button).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
showOnMap(new LatLon(location.getLatitude(), location.getLongitude()), 13);
if (location != null) {
showOnMap(new LatLon(location.getLatitude(), location.getLongitude()), 13);
}
}
});
view.findViewById(R.id.map_downloading_card).setVisibility(View.VISIBLE);