diff --git a/modules/module-pw-alsa-udev.c b/modules/module-pw-alsa-udev.c
index b88e0fcbe803c73bff2e4094dd0ac582884f45c3..ebf221b842a315b8eb185ee88cbefae4aa74749d 100644
--- a/modules/module-pw-alsa-udev.c
+++ b/modules/module-pw-alsa-udev.c
@@ -100,7 +100,7 @@ proxy_node_created(GObject *initable, GAsyncResult *res, gpointer data)
 
   /* Get the alsa node info */
   ei = g_hash_table_lookup(impl->alsa_nodes_info, GINT_TO_POINTER(pi->node_id));
-  if (!data)
+  if (!ei)
     return;
 
   /* Build the properties for the endpoint */