diff --git a/OsmAnd/src/net/osmand/plus/importfiles/ImportHelper.java b/OsmAnd/src/net/osmand/plus/importfiles/ImportHelper.java index 9279a85ce5..3ba4d92cbd 100644 --- a/OsmAnd/src/net/osmand/plus/importfiles/ImportHelper.java +++ b/OsmAnd/src/net/osmand/plus/importfiles/ImportHelper.java @@ -673,6 +673,9 @@ public class ImportHelper { public static List asFavourites(OsmandApplication app, List wptPts, String fileName, boolean forceImportFavourites) { List favourites = new ArrayList<>(); for (WptPt p : wptPts) { + if (p.name == null) { + p.name = Algorithms.getFileNameWithoutExtension(fileName); + } if (p.name != null) { final String fpCat; if (p.category == null) {