diff --git a/src/main/java/de/dennisguse/opentracks/ui/aggregatedStatistics/AggregatedStatisticsAdapter.java b/src/main/java/de/dennisguse/opentracks/ui/aggregatedStatistics/AggregatedStatisticsAdapter.java index f8a148bb2..83dc21069 100644 --- a/src/main/java/de/dennisguse/opentracks/ui/aggregatedStatistics/AggregatedStatisticsAdapter.java +++ b/src/main/java/de/dennisguse/opentracks/ui/aggregatedStatistics/AggregatedStatisticsAdapter.java @@ -123,7 +123,11 @@ public ViewHolder(View view) { } public void setElevation(AggregatedStatistics.AggregatedStatistic aggregatedStatistic) { + if(aggregatedStatistic.getTrackStatistics().getTotalAltitudeGain()==null) + elevationGain.setText("0.0"); + else elevationGain.setText(aggregatedStatistic.getTrackStatistics().getTotalAltitudeGain().toString()); + System.out.println(); } public void setSpeed(AggregatedStatistics.AggregatedStatistic aggregatedStatistic) { setCommonValues(aggregatedStatistic);