Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8117583

Chart setCreateSymbols(false) and chart data.deleting series

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.1
    • Fix Version/s: None
    • Component/s: javafx
    • Environment:

      NetBeans 7.2 Beta on Windows 7 64-bit

      Description

      When I want to delete a data series from a LineChart I get java.lang.NullPointerException at javafx.scene.chart.LineChart.seriesRemoved(Unknown Source) but it does not happen if the lineChart.serCreateSymbols() is set to true. I happens only for no symbols visible. If I enable the symbols just befeore deleting data series, there is no exception.
      To reproduce the bug it is enough to add this line:
      lc.setCreateSymbols(false);
      in createChart() method in AdvancedLineChartSample.java in sample JavaFX program - Ensemble.

      If you have any further questions I would be glad to help.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psomashe Parvathi Somashekar (Inactive)
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: