Possible NPE in Node.localToScreen method

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P5
    • None
    • Affects Version/s: 8u20
    • Component/s: javafx
    • None
    • Environment:

      Independent of the environment

      The localToScreen method in the Node class has the following code:
              Scene scene = getScene();
              Window window = scene.getWindow();
              if (scene == null || window == null) {
                  return null;
              }
      Throwing a NPE if the Scene is null, even with the following if (scene == null || window == null) line.

            Assignee:
            Martin Sládeček
            Reporter:
            Hervé Girod (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: