You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2009/10/06 17:45:40 UTC
svn commit: r822323 -
/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/Mouse.java
Author: gbrown
Date: Tue Oct 6 15:45:40 2009
New Revision: 822323
URL: http://svn.apache.org/viewvc?rev=822323&view=rev
Log:
Fix for issue PIVOT-311.
Modified:
incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/Mouse.java
Modified: incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/Mouse.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/Mouse.java?rev=822323&r1=822322&r2=822323&view=diff
==============================================================================
--- incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/Mouse.java (original)
+++ incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/Mouse.java Tue Oct 6 15:45:40 2009
@@ -116,7 +116,11 @@
Display display = capturer.getDisplay();
Point location = display.getMouseLocation();
- Component descendant = display.getDescendantAt(location.x, location.y);
+
+ Component descendant = null;
+ if (location != null) {
+ display.getDescendantAt(location.x, location.y);
+ }
while (descendant != null
&& descendant != capturer) {