Make /contenttype/tree test work installed
[platform/upstream/glib.git] / gio / tests / proxy-test.c
index ad2fcdf..af91f38 100644 (file)
@@ -889,7 +889,7 @@ assert_direct (GSocketConnection *conn)
 
   addr = g_socket_connection_get_remote_address (conn, &error);
   g_assert_no_error (error);
-  g_assert (!G_IS_PROXY_ADDRESS (addr));
+  g_assert (addr != NULL && !G_IS_PROXY_ADDRESS (addr));
   g_object_unref (addr);
 
   addr = g_socket_connection_get_local_address (conn, &error);