Details
-
Bug
-
Resolution: Fixed
-
P4
-
8u20
-
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.
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
- duplicates
-
JDK-8097466 Changing the root of a scene causes NullPointerException
- Resolved
-
JDK-8093114 Possible NPE in Node.localToScreen method
- Resolved