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,8 +304,10 @@ public class TrackDetailsMenu {
|
|||
float[] entries = chart.getXAxis().mEntries;
|
||||
for (int i = 0; i < entries.length; i++) {
|
||||
WptPt pointToAdd = getPoint(chart, entries[i]);
|
||||
if (pointToAdd != null) {
|
||||
pointsOnChart.add(pointToAdd);
|
||||
}
|
||||
}
|
||||
mapActivity.getMapLayers().getGpxLayer().setPointsOnChart(pointsOnChart);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue