[orca] Handle cases where the default script returns an empty string for WebKitGtk content



commit 954516e1587eb98023317274d299b4127e77a72c
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sun Aug 12 17:02:17 2012 -0400

    Handle cases where the default script returns an empty string for WebKitGtk content

 src/orca/scripts/toolkits/WebKitGtk/script.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/WebKitGtk/script.py b/src/orca/scripts/toolkits/WebKitGtk/script.py
index b72de44..fc0a86b 100644
--- a/src/orca/scripts/toolkits/WebKitGtk/script.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/script.py
@@ -678,7 +678,7 @@ class Script(default.Script):
 
         textLine = default.Script.getTextLineAtCaret(self, obj, offset)
         string = textLine[0]
-        if string.find(self.EMBEDDED_OBJECT_CHARACTER) == -1:
+        if string and string.find(self.EMBEDDED_OBJECT_CHARACTER) == -1:
             return textLine
 
         textLine[0] = self.utilities.displayedText(obj)



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