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

NPE when setting auto range to false for CategoryAxis

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: javafx
    • Environment:

      8.0.0-ea-b58

      Description

      Run the attached app which has a LineChart with CategoryAxis xAxis and NumberAxis yAxis. When I invoke xAxis.setAutoRanging(false) in line 39 I get the following NPE:

      Caused by: java.lang.NullPointerException
      at javafx.scene.chart.Axis.layoutChildren(Axis.java:634)
      at javafx.scene.Parent.layout(Parent.java:1012)
      at javafx.scene.chart.XYChart.layoutChartChildren(XYChart.java:684)
      at javafx.scene.chart.Chart$1.layoutChildren(Chart.java:84)
      at javafx.scene.Parent.layout(Parent.java:1012)
      at javafx.scene.Scene.layoutDirtyRoots(Scene.java:517)
      at javafx.scene.Scene.doLayoutPass(Scene.java:488)
      at javafx.scene.Scene.preferredSize(Scene.java:1496)
      at javafx.scene.Scene.impl_preferredSize(Scene.java:1523)
      at javafx.stage.Window$10.invalidated(Window.java:723)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:106)
      at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:140)
      at javafx.stage.Window.setShowing(Window.java:786)
      at javafx.stage.Window.show(Window.java:801)
      at javafx.stage.Stage.show(Stage.java:230)
      at Bug.start(Bug.java:93)
      at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
      at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:207)
      at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
      at com.sun.glass.ui.win.WinApplication$3$1.run(Unknown Source)
      ... 1 more

        Attachments

          Activity

            People

            Assignee:
            psomashe Parvathi Somashekar (Inactive)
            Reporter:
            mrkam Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: