Fix crashes
Conflicts: OsmAnd/src/net/osmand/plus/AppInitializer.java
This commit is contained in:
parent
68af3483d2
commit
559a715236
2 changed files with 4 additions and 1 deletions
|
@ -352,6 +352,7 @@ public class AppInitializer implements IProgress {
|
|||
return app.getString(in);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LOG.info("No translation: " + keyName);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -1231,7 +1231,9 @@ public class GPXUtilities {
|
|||
public static String writeGpxFile(File fout, GPXFile file, OsmandApplication ctx) {
|
||||
Writer output = null;
|
||||
try {
|
||||
if(fout.getParentFile() != null) {
|
||||
fout.getParentFile().mkdirs();
|
||||
}
|
||||
output = new OutputStreamWriter(new FileOutputStream(fout), "UTF-8"); //$NON-NLS-1$
|
||||
String msg = writeGpx(output, file, ctx);
|
||||
if(Algorithms.isEmpty(file.path)) {
|
||||
|
|
Loading…
Reference in a new issue