<AWT Dev> 6840067 NPE at Component.findUnderMouseInWindow
Jason Mehrens
jason_mehrens at hotmail.com
Tue Jun 7 13:20:12 PDT 2011
Hello awt-dev,
Bug 6840067 has been marked as Closed-Not Reproducible and I would like to get the issue reopened. Attached is a test case that explains "The when and why the PointerInfo becomes null." The test case is a modified copy of the MouseInfo.getPointerInfo. To reproduce the error you need a workstation with multiple displays that are dependent. In my case a windows vista machine with 2 monitors. Run the test case and then lock the desktop of the workstation. When you log back in to the machine the test fails because the mouse point is not contained in any of the graphics configurations. This causes the PointerInfo to be null, and Component.getMousePosition does not handle this case.
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20110607/513559e9/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Bug6840067.java
Url: http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20110607/513559e9/Bug6840067.java
More information about the awt-dev
mailing list