Index: src/orca/Gecko.py
===================================================================
--- src/orca/Gecko.py	(revision 3024)
+++ src/orca/Gecko.py	(working copy)
@@ -5801,15 +5801,18 @@
             while not done:
                 [nextCell, text, extents, isField] = \
                         self.getNextCellInfo(nextCell, "up")
-                dWidth = abs(objExtents[2] - extents[2])
-                dHeight = abs(objExtents[3] - extents[3])
-                if dWidth > 1 or dHeight > 1:
+                if nextCell:
+                    dWidth = abs(objExtents[2] - extents[2])
+                    dHeight = abs(objExtents[3] - extents[3])
+                    if dWidth > 1 or dHeight > 1:
+                        done = True
+                    if not isField:
+                        [row, col]=  self.getCellCoordinates(nextCell)
+                        if row == 0:
+                            grid = True
+                            done = True
+                else:
                     done = True
-                if not isField:
-                    [row, col]=  self.getCellCoordinates(nextCell)
-                    if row == 0:
-                        grid = True
-                        done = True
 
             if grid:
                 cell = nextCell.parent.table.getAccessibleAt(0, col)
