This is reproducible with soma integration b18 with prism. Not reproducible with swing toolkit. This is seen on mac 10.5
Trying to show a Stage with a Text node present throws the following exception. Stage is not shown and the app waits
java.lang.NullPointerException
at com.sun.javafx.sg.prism.NGText.getContentBounds(NGText.java:64)
at com.sun.javafx.sg.prism.NGNode.getEffectBounds(NGNode.java:486)
at com.sun.javafx.sg.prism.NGNode.getClippedBounds(NGNode.java:465)
at com.sun.javafx.sg.prism.NGNode.getCompleteBounds(NGNode.java:438)
at com.sun.javafx.sg.prism.NGGroup.getContentBounds(NGGroup.java:156)
at com.sun.javafx.sg.prism.NGNode.getEffectBounds(NGNode.java:486)
at com.sun.javafx.sg.prism.NGNode.getClippedBounds(NGNode.java:465)
at com.sun.javafx.sg.prism.NGNode.getCompleteBounds(NGNode.java:438)
at javafx.scene.Scene.userInit$(Scene.fx:314)
at com.sun.javafx.runtime.FXBase.complete$(FXBase.java:56)
at test1.javafx$run$(test1.fx:8)
Testcase:
import javafx.stage.*;
import javafx.scene.*;
import javafx.scene.text.*;
Stage {
width: 250
height: 250
scene: Scene {
content: Text {
content: "Some Label"
translateX: 30
translateY: 100
}
}
}
Trying to show a Stage with a Text node present throws the following exception. Stage is not shown and the app waits
java.lang.NullPointerException
at com.sun.javafx.sg.prism.NGText.getContentBounds(NGText.java:64)
at com.sun.javafx.sg.prism.NGNode.getEffectBounds(NGNode.java:486)
at com.sun.javafx.sg.prism.NGNode.getClippedBounds(NGNode.java:465)
at com.sun.javafx.sg.prism.NGNode.getCompleteBounds(NGNode.java:438)
at com.sun.javafx.sg.prism.NGGroup.getContentBounds(NGGroup.java:156)
at com.sun.javafx.sg.prism.NGNode.getEffectBounds(NGNode.java:486)
at com.sun.javafx.sg.prism.NGNode.getClippedBounds(NGNode.java:465)
at com.sun.javafx.sg.prism.NGNode.getCompleteBounds(NGNode.java:438)
at javafx.scene.Scene.userInit$(Scene.fx:314)
at com.sun.javafx.runtime.FXBase.complete$(FXBase.java:56)
at test1.javafx$run$(test1.fx:8)
Testcase:
import javafx.stage.*;
import javafx.scene.*;
import javafx.scene.text.*;
Stage {
width: 250
height: 250
scene: Scene {
content: Text {
content: "Some Label"
translateX: 30
translateY: 100
}
}
}