Add check for point if null
This commit is contained in:
parent
27ca6f24d4
commit
a6520c3f3f
1 changed files with 3 additions and 1 deletions
|
@ -304,7 +304,9 @@ public class TrackDetailsMenu {
|
|||
float[] entries = chart.getXAxis().mEntries;
|
||||
for (int i = 0; i < entries.length; i++) {
|
||||
WptPt pointToAdd = getPoint(chart, entries[i]);
|
||||
pointsOnChart.add(pointToAdd);
|
||||
if (pointToAdd != null) {
|
||||
pointsOnChart.add(pointToAdd);
|
||||
}
|
||||
}
|
||||
mapActivity.getMapLayers().getGpxLayer().setPointsOnChart(pointsOnChart);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue