Index: src/orca/scripts/StarOffice.py
===================================================================
--- src/orca/scripts/StarOffice.py	(revision 3578)
+++ src/orca/scripts/StarOffice.py	(working copy)
@@ -2649,11 +2671,14 @@
             # Get the word containing the caret.
             word = text.getTextAtOffset(caretOffset, \
                 pyatspi.TEXT_BOUNDARY_WORD_START)
+            print "XXX: word: ", word
             wordStart = word[1]
+            print "XXX: wordStart: ", wordStart
             wordEnd = word[2]
+            print "XXX: wordEnd: ", wordEnd
 
             if lastKey == "Right":
-                if wordStart == lineStart:
+                if word[0] and wordStart == lineStart:
                     return True
             else:
                 if wordEnd == lineEnd:
@@ -2662,7 +2687,7 @@
         else:  # right arrow or left arrow
 
             if lastKey == "Right":
-                if caretOffset == lineStart:
+                if word[0] and caretOffset == lineStart:
                     return True
             else:
                 if caretOffset == lineEnd:
