[orca/gnome-2-30] Fix for bgo#615304 - Sanity check needed in the Gecko script's updateBraille



commit ca63a27c33ef98bd046fae1032ed8a12de491f8c
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Fri Apr 9 11:58:33 2010 -0400

    Fix for bgo#615304 - Sanity check needed in the Gecko script's updateBraille

 src/orca/scripts/toolkits/Gecko/script.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 40623b8..f0d89d4 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -2379,7 +2379,7 @@ class Script(default.Script):
         # full line, however.
         #
         presentOnlyFocusedObj = False
-        if focusedObj.getRole() == pyatspi.ROLE_SLIDER:
+        if focusedObj and focusedObj.getRole() == pyatspi.ROLE_SLIDER:
             presentOnlyFocusedObj = True
 
         contents = self.currentLineContents



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]