Let G be a locally compact group. We denote by SUB(G) the hyperspace of closed subgroups of G endowed with the Chabauty topology. In this article we study the continuity of the following map Cent(G): G -> SUB(G), g bar right arrow Cent(G)(g), where CentG(g) is the centralizer of g in G.