Fix #3531
This commit is contained in:
parent
a063e4f43d
commit
89c6a62756
2 changed files with 3 additions and 2 deletions
|
@ -210,7 +210,8 @@ public class GPXDatabase {
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getFileDir(File itemFile) {
|
private String getFileDir(File itemFile) {
|
||||||
return itemFile.getParentFile().equals(context.getAppPath(IndexConstants.GPX_INDEX_DIR)) ?
|
return itemFile.getParentFile() == null ||
|
||||||
|
itemFile.getParentFile().equals(context.getAppPath(IndexConstants.GPX_INDEX_DIR)) ?
|
||||||
"" : itemFile.getParentFile().getName();
|
"" : itemFile.getParentFile().getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue