Index: src/orca/Gecko.py
===================================================================
--- src/orca/Gecko.py	(revision 2456)
+++ src/orca/Gecko.py	(working copy)
@@ -767,9 +767,10 @@
 
             # Handle empty alt tags.
             #
-            lengthOfName = len(name[0].strip())
-            if (lengthOfName > 0) and (name != label):
-                utterances.extend(name)
+            if name:
+                lengthOfName = len(name[0].strip())
+                if (lengthOfName > 0) and (name != label):
+                    utterances.extend(name)
 
             # If there's no text for the link, expose part of the
             # URI to the user.
