Fix a crash introduced in last commit
authorMike Gorse <mgorse@novell.com>
Mon, 18 Apr 2011 16:33:51 +0000 (11:33 -0500)
committerMike Gorse <mgorse@novell.com>
Mon, 18 Apr 2011 16:34:12 +0000 (11:34 -0500)
atspi/atspi-accessible.c

index 86f47d8..9f01868 100644 (file)
@@ -719,7 +719,7 @@ atspi_accessible_get_application (AtspiAccessible *obj, GError **error)
   for (;;)
   {
     parent = atspi_accessible_get_parent (obj, NULL);
-    if (!parent &&
+    if (!parent && obj->parent.app &&
         atspi_accessible_get_role (obj, NULL) != ATSPI_ROLE_APPLICATION)
     {
       AtspiAccessible *root = g_object_ref (obj->parent.app->root);