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

Possible NPE in Node.localToScreen method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 8u20
    • javafx
    • None
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported: