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

NPE when using X or Y rotationAxis

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8u40
    • 8u40
    • javafx
    • 8u40 b03

    Description

      Using Scene Builder, drop an AnchorPane and a Button.
      Select the Button and set the RotationAxis.X to 1 (from inspector Layout section)
      Use the Rotate property handle to rotate the Button: the following NPE is raised.

      Note this is a regression from Java 8 to 8u20: with the same SB code one doesn't get the NPE using 8, when one get it using 8u20 or 8u40.

      SEVERE: An exception was thrown:
      java.lang.IllegalStateException: Cannot transform 2D point with a 3D transform
      at com.sun.javafx.scene.transform.TransformUtils$ImmutableTransform.ensureCanTransform2DPoint(TransformUtils.java:824)
      at com.sun.javafx.scene.transform.TransformUtils$ImmutableTransform.transform(TransformUtils.java:392)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.content.AbstractDecoration.sceneGraphObjectToDecoration(AbstractDecoration.java:166)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.content.AbstractDecoration.sceneGraphObjectToDecoration(AbstractDecoration.java:129)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.content.driver.handles.AbstractGenericHandles.layoutDecoration(AbstractGenericHandles.java:217)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.content.AbstractDecoration.lambda$2(AbstractDecoration.java:227)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.content.AbstractDecoration$$Lambda$527/2147244218.changed(Unknown Source)
      at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:182)
      at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
      at javafx.scene.Node$LazyTransformProperty.invalidate(Node.java:9319)
      at javafx.scene.Node$NodeTransformation.invalidateLocalToSceneTransform(Node.java:5807)
      at javafx.scene.Node.invalidateLocalToSceneTransform(Node.java:5540)
      at javafx.scene.Node.impl_transformsChanged(Node.java:4751)
      at javafx.scene.Node$NodeTransformation$8.invalidated(Node.java:6007)
      at javafx.beans.property.DoublePropertyBase.markInvalid(DoublePropertyBase.java:112)
      at javafx.beans.property.DoublePropertyBase.set(DoublePropertyBase.java:146)
      at javafx.css.StyleableDoubleProperty.set(StyleableDoubleProperty.java:82)
      at javafx.scene.Node.setRotate(Node.java:5437)
      ...

      Attachments

        Activity

          People

            eleponn Eric Le Ponner
            jcambon Jerome Cambon
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: