Index: ChangeLog
===================================================================
--- ChangeLog	(revision 3431)
+++ ChangeLog	(working copy)
@@ -1,3 +1,9 @@
+2008-01-07  Rich Burridge <rich.burridge@sun.com>
+
+        * src/orca/scripts/Thunderbird.py:
+          Fix for bug #502084 – Running Orca with Thunderbird v2.0.X with 
+          compose window open generates a stack trace.
+
 2008-01-04  Rich Burridge <rich.burridge@sun.com>
 
         * src/orca/default.py:
Index: src/orca/scripts/Thunderbird.py
===================================================================
--- src/orca/scripts/Thunderbird.py	(revision 3431)
+++ src/orca/scripts/Thunderbird.py	(working copy)
@@ -125,7 +125,7 @@
 
         # Handle dialogs.
         #
-        if top.getRole() == pyatspi.ROLE_DIALOG:
+        if top and top.getRole() == pyatspi.ROLE_DIALOG:
             self._speakEnclosingPanel(obj)
 
         if not consume:
