[Laszlo-checkins] r14273 - openlaszlo/trunk/WEB-INF/lps/lfc/services

hqm@openlaszlo.org hqm at openlaszlo.org
Thu Jul 2 13:18:06 PDT 2009


Author: hqm
Date: 2009-07-02 13:18:05 -0700 (Thu, 02 Jul 2009)
New Revision: 14273

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/services/LzFocus.lzs
Log:
Change 20090702-hqm-7 by hqm at badtzmaru.home on 2009-07-02 14:44:11 EDT
    in /Users/hqm/openlaszlo/trunk-diamond/WEB-INF/lps/lfc
    for http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc

Summary: fix null pointer reference error in accessibility feature

New Features:

Bugs Fixed: LPP-8248

Technical Reviewer: ptw
QA Reviewer: abraham
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

+ check that sprite is not null before dereferencing it
    

Tests:

test/accessibility/test-components.lzx?lzr=dhtml&lzt=html
should not get any null pointer errors when tabbing through items



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzFocus.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzFocus.lzs	2009-07-02 18:46:12 UTC (rev 14272)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzFocus.lzs	2009-07-02 20:18:05 UTC (rev 14273)
@@ -226,7 +226,9 @@
 
         // canvas.accessible && dhtml
         if ($dhtml && canvas.accessible) {
-            newsel.sprite.aafocus();
+            if (newsel && newsel.sprite != null) {
+                newsel.sprite.aafocus();
+            }
         }
 
         if (newsel && newsel.onfocus.ready) {



More information about the Laszlo-checkins mailing list