-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 8u20
-
Component/s: 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.
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.
- duplicates
-
JDK-8097466 Changing the root of a scene causes NullPointerException
-
- Closed
-
-
JDK-8093114 Possible NPE in Node.localToScreen method
-
- Closed
-