Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-09-29 00:03:15 +02:00
commit 4a517e34ca
2 changed files with 4 additions and 1 deletions

View file

@ -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() ) {

View file

@ -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();