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

NPE on Node#localToScreen

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
      None

      Description

      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.


        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: