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

NPE on Node#localToScreen

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u20
    • 8u20
    • javafx
    • None

      See
      public Point2D localToScreen(double localX, double localY, double localZ) {
              Scene scene = getScene();
              Window window = scene.getWindow();
              if (scene == null || window == null) {
                  return null;
              }

      note testing scene==null *after* calling scene.getWindow().

      public Point2D screenToLocal(double screenX, double screenY) {

      has the same bug.


            fheidric Felipe Heidrich (Inactive)
            fheidric Felipe Heidrich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: