-
Bug
-
Resolution: Fixed
-
P3
-
fx2.0
When adding a ScrollPane without child into a scenegraph, we got the following NPE:
WARNING: com.sun.javafx.scene.control.skin.ScrollPaneSkin layoutChildren No node has been set in ScrollPane ScrollPane[id=ScrollPane, styleClass=scroll-pane]
java.lang.NullPointerException
at com.sun.javafx.scene.control.skin.ScrollPaneSkin.recalculateViewportBounds(ScrollPaneSkin.java:368)
at com.sun.javafx.scene.control.skin.ScrollPaneSkin.handleControlPropertyChanged(ScrollPaneSkin.java:307)
at com.sun.javafx.scene.control.skin.SkinBase$3.invalidated(SkinBase.java:216)
at javafx.beans.value.ObservableValueBase.fireValueChangedEvent(ObservableValueBase.java:107)
at javafx.beans.property.DoublePropertyBase.markInvalid(DoublePropertyBase.java:58)
at javafx.beans.property.DoublePropertyBase.set(DoublePropertyBase.java:108)
at javafx.scene.control.Control.setWidth(Control.java:164)
at javafx.scene.control.Control.resize(Control.java:449)
at javafx.scene.Node.resizeRelocate(Node.java:2004)
at javafx.scene.layout.AnchorPane.layoutChildren(AnchorPane.java:239)
at javafx.scene.Parent.layout(Parent.java:852)
at javafx.scene.Parent.layout(Parent.java:859)
at javafx.scene.Parent.layout(Parent.java:859)
at javafx.scene.Parent.layout(Parent.java:859)
at javafx.scene.Parent.layout(Parent.java:859)
at com.oracle.javafx.authoring.stage.BackstagePane.computeMinWidth(BackstagePane.java:381)
at javafx.scene.layout.Region.minWidth(Region.java:742)
at javafx.scene.layout.Region.boundedWidth(Region.java:177)
at javafx.scene.layout.Region.layoutInArea(Region.java:1196)
at javafx.scene.layout.Region.layoutInArea(Region.java:1172)
at javafx.scene.layout.StackPane.layoutChildren(StackPane.java:223)
at javafx.scene.Parent.layout(Parent.java:852)
at javafx.scene.Scene.layoutDirtyRoots(Scene.java:416)
at javafx.scene.Scene.doLayoutPass(Scene.java:389)
at javafx.scene.Scene.access$2700(Scene.java:105)
at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:1509)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:268)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:350)
at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:286)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
at com.sun.glass.ui.win.WinApplication$1$1.run(WinApplication.java:49)
at java.lang.Thread.run(Thread.java:662)
WARNING: com.sun.javafx.scene.control.skin.ScrollPaneSkin layoutChildren No node has been set in ScrollPane ScrollPane[id=ScrollPane, styleClass=scroll-pane]
java.lang.NullPointerException
at com.sun.javafx.scene.control.skin.ScrollPaneSkin.recalculateViewportBounds(ScrollPaneSkin.java:368)
at com.sun.javafx.scene.control.skin.ScrollPaneSkin.handleControlPropertyChanged(ScrollPaneSkin.java:307)
at com.sun.javafx.scene.control.skin.SkinBase$3.invalidated(SkinBase.java:216)
at javafx.beans.value.ObservableValueBase.fireValueChangedEvent(ObservableValueBase.java:107)
at javafx.beans.property.DoublePropertyBase.markInvalid(DoublePropertyBase.java:58)
at javafx.beans.property.DoublePropertyBase.set(DoublePropertyBase.java:108)
at javafx.scene.control.Control.setWidth(Control.java:164)
at javafx.scene.control.Control.resize(Control.java:449)
at javafx.scene.Node.resizeRelocate(Node.java:2004)
at javafx.scene.layout.AnchorPane.layoutChildren(AnchorPane.java:239)
at javafx.scene.Parent.layout(Parent.java:852)
at javafx.scene.Parent.layout(Parent.java:859)
at javafx.scene.Parent.layout(Parent.java:859)
at javafx.scene.Parent.layout(Parent.java:859)
at javafx.scene.Parent.layout(Parent.java:859)
at com.oracle.javafx.authoring.stage.BackstagePane.computeMinWidth(BackstagePane.java:381)
at javafx.scene.layout.Region.minWidth(Region.java:742)
at javafx.scene.layout.Region.boundedWidth(Region.java:177)
at javafx.scene.layout.Region.layoutInArea(Region.java:1196)
at javafx.scene.layout.Region.layoutInArea(Region.java:1172)
at javafx.scene.layout.StackPane.layoutChildren(StackPane.java:223)
at javafx.scene.Parent.layout(Parent.java:852)
at javafx.scene.Scene.layoutDirtyRoots(Scene.java:416)
at javafx.scene.Scene.doLayoutPass(Scene.java:389)
at javafx.scene.Scene.access$2700(Scene.java:105)
at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:1509)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:268)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:350)
at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:286)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
at com.sun.glass.ui.win.WinApplication$1$1.run(WinApplication.java:49)
at java.lang.Thread.run(Thread.java:662)