mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-14 22:43:57 +00:00
bug4546 Avoided NPE in Mark Position Editor when the mark is deselected
while adding or editing positions
This commit is contained in:
1 parent
c310f07be5
commit
da613dadef
1 file changed
+1
-1
+1
-1
@@ -529,7 +529,7 @@ public class EditMarkPositionPanel extends AbstractRaceChart<AbstractSettings> i
|
||||
|
||||
public void resetPointColor(int index) {
|
||||
Point[] points = markSeries.getPoints();
|
||||
if (points.length > index) {
|
||||
if (points.length > index && selectedMark != null) {
|
||||
points[index].setMarker(new Marker().setFillColor(selectedMark.color==null?null:selectedMark.color.getAsHtml()));
|
||||
setSeriesPoints(markSeries, points, /* manageZoom */ true);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user