fix for non-navigatable end call window in call-ui application, by Mr Shin-Woo Kim
[platform/upstream/at-spi2-core.git] / atspi / atspi-misc.c
index 48759ca..fdb4e9b 100644 (file)
@@ -387,7 +387,7 @@ handle_name_owner_changed (DBusConnection *bus, DBusMessage *message, void *user
   else if (app_hash)
   {
     AtspiApplication *app = g_hash_table_lookup (app_hash, old);
-    if (app && app->bus_name && !strcmp(app->bus_name, name))
+    if (app && name && app->bus_name && !strcmp(app->bus_name, name))
       g_object_run_dispose (G_OBJECT (app));
   }
   return DBUS_HANDLER_RESULT_HANDLED;