mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-03 18:03:06 +02:00
throw Exception when no doc.kml file found in kmz
This commit is contained in:
@@ -177,6 +177,10 @@ public class KmzTrackImporter implements TrackImporter {
|
||||
|
||||
zipInputStream.closeEntry();
|
||||
}
|
||||
if (trackId == null) {
|
||||
Log.d(TAG, "Unable to find doc.kml in kmz");
|
||||
throw new RuntimeException(context.getString(R.string.import_no_kml_file_found));
|
||||
}
|
||||
return trackId;
|
||||
} catch (ImportParserException | ImportAlreadyExistsException e) {
|
||||
Log.e(TAG, "Unable to import file", e);
|
||||
|
||||
Reference in New Issue
Block a user