Index: braillegenerator.py
===================================================================
RCS file: /cvs/gnome/orca/src/orca/braillegenerator.py,v
retrieving revision 1.61
diff -u -r1.61 braillegenerator.py
--- braillegenerator.py	25 Oct 2006 00:31:48 -0000	1.61
+++ braillegenerator.py	27 Oct 2006 23:58:58 -0000
@@ -471,11 +471,15 @@
         #
         if focusedRegionIndex >= len(regions):
             focusedRegionIndex = 0
+        if len(regions) == 0:
+            focusedRegion = None
+        else:
+            focusedRegion = regions[focusedRegionIndex]
 
         # [[[TODO: WDW - perhaps if a text area was created, we should
         # give focus to it.]]]
         #
-        return [regions, regions[focusedRegionIndex]]
+        return [regions, focusedRegion]
 
     def _getBrailleRegionsForDesktopIcon(self, obj):
         """Get the braille for a desktop icon.
