Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
4a517e34ca
2 changed files with 4 additions and 1 deletions
|
@ -80,6 +80,9 @@ public class DashTrackFragment extends DashBaseFragment {
|
|||
View mainView = getView();
|
||||
final File dir = getMyApplication().getAppPath(IndexConstants.GPX_INDEX_DIR);
|
||||
final OsmandApplication app = getMyApplication();
|
||||
if(app == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
final List<String> list = new ArrayList<String>();
|
||||
for(SelectedGpxFile sg : app.getSelectedGpxHelper().getSelectedGPXFiles() ) {
|
||||
|
|
|
@ -183,7 +183,7 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
|
|||
if (OsmandPlugin.getEnabledPlugin(OsmandMonitoringPlugin.class) == null) {
|
||||
return;
|
||||
}
|
||||
if (v == null) {
|
||||
if (v == null || ctx == null || app == null) {
|
||||
return;
|
||||
}
|
||||
final boolean isRecording = app.getSettings().SAVE_GLOBAL_TRACK_TO_GPX.get();
|
||||
|
|
Loading…
Reference in a new issue