[orca/gnome-3-4] Fix for bug 673157 - Unhandled exception when in Unity Greeter



commit 50777f4ce470335c912e696dc4695dc0e12b700d
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Mar 30 12:17:46 2012 -0400

    Fix for bug 673157 - Unhandled exception when in Unity Greeter

 src/orca/flat_review.py |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/flat_review.py b/src/orca/flat_review.py
index 886d997..ba620c5 100644
--- a/src/orca/flat_review.py
+++ b/src/orca/flat_review.py
@@ -640,8 +640,12 @@ class Context:
         currentWordIndex = 0
         currentCharIndex = 0
 
-        if orca_state.locusOfFocus and \
-           orca_state.locusOfFocus.getRole() == pyatspi.ROLE_TABLE_CELL:
+        try:
+            role = orca_state.locusOfFocus.getRole()
+        except:
+            role = None
+
+        if role == pyatspi.ROLE_TABLE_CELL:
             searchZone = orca_state.activeScript.\
                 utilities.realActiveDescendant(orca_state.locusOfFocus)
         else:



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