Revision: 4035
          http://vexi.svn.sourceforge.net/vexi/?rev=4035&view=rev
Author:   clrg
Date:     2011-02-15 22:58:53 +0000 (Tue, 15 Feb 2011)

Log Message:
-----------
Fix unlikely harmless NPE

Modified Paths:
--------------
    trunk/org.vexi-core.main/src/main/jpp/org/vexi/core/Box.jpp

Modified: trunk/org.vexi-core.main/src/main/jpp/org/vexi/core/Box.jpp
===================================================================
--- trunk/org.vexi-core.main/src/main/jpp/org/vexi/core/Box.jpp 2011-02-13 
22:50:07 UTC (rev 4034)
+++ trunk/org.vexi-core.main/src/main/jpp/org/vexi/core/Box.jpp 2011-02-15 
22:58:53 UTC (rev 4035)
@@ -1457,7 +1457,7 @@
         // set cursor if applicable to this box
         if (test(CURSOR)) {
             Surface s = getSurface();
-            if (!s.cursorset) {
+            if (s!=null && !s.cursorset) {
                 s.cursor = JSU.toString(getAndTriggerTraps(SC_cursor));
                 s.cursorset = true;
             }


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

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to