Fix crash with empty points

This commit is contained in:
Victor Shcherb 2016-08-17 00:58:44 +02:00
parent e11fe81ddc
commit 9075257462

View file

@ -328,6 +328,10 @@ public class GpxImportHelper {
}
private void importFavourites(final GPXUtilities.GPXFile gpxFile, final String fileName, final boolean save) {
if(gpxFile.points == null || gpxFile.points.size() == 0) {
handleResult(gpxFile, fileName, save);
return;
}
final DialogInterface.OnClickListener importFavouritesListener = new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {