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

Stage with Text do not come up, exception thrown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Cannot Reproduce
    • Affects Version/s: fx1.3
    • Fix Version/s: fx1.3
    • Component/s: javafx
    • Labels:
    • Environment:

      Mac 10.5, soma integration b18, prism, jdk1.6

      Description

      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
              }
          }
      }


        Attachments

          Activity

            People

            Assignee:
            tdv Dmitri Trembovetski (Inactive)
            Reporter:
            gramachasunw Girish Ramachandran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: