Browse files

NPE fix for Donut PiePlot in pointRenderers

  • Loading branch information...
Mykola Karaman authored and eseifert committed Sep 21, 2017
1 parent 6ca80bf commit a5f115cd0257778e7504b8c5b9da4eca9b08bf98
Showing with 3 additions and 1 deletion.
  1. +3 −1 gral-core/src/main/java/de/erichseifert/gral/plots/
@@ -915,9 +915,11 @@ public void add(int index, DataSource source, boolean visible) {
throw new IllegalArgumentException(
"This plot type only supports a single data source."); //$NON-NLS-1$
super.add(index, source, visible);
PointRenderer pointRendererDefault = new PieSliceRenderer(this);
setPointRenderer(source, pointRendererDefault);
super.add(index, source, visible);
setMapping(source, AXIS_TANGENTIAL);

0 comments on commit a5f115c

Please sign in to comment.