Revision: 4886
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4886&view=rev
Author:   bphinz
Date:     2012-04-11 15:34:45 +0000 (Wed, 11 Apr 2012)
Log Message:
-----------
Fix potential null pointer exception if cursor hotspot isn't available

Modified Paths:
--------------
    trunk/java/com/tigervnc/vncviewer/DesktopWindow.java

Modified: trunk/java/com/tigervnc/vncviewer/DesktopWindow.java
===================================================================
--- trunk/java/com/tigervnc/vncviewer/DesktopWindow.java        2012-04-11 
14:38:48 UTC (rev 4885)
+++ trunk/java/com/tigervnc/vncviewer/DesktopWindow.java        2012-04-11 
15:34:45 UTC (rev 4886)
@@ -128,6 +128,9 @@
 
     hideLocalCursor();
 
+    if (hotspot == null)
+      hotspot = new Point(0, 0);
+
     cursor.hotspot = hotspot;
 
     Dimension bsc = tk.getBestCursorSize(w, h);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to