The Doubles Operator selects all vertices which are recognized as duplicates.
Note: this operator does not preserve the original vertex selection. So after the operator is called, only the duplicate vertices are selected or no vertex is selected when the mesh is clean (has no duplicates)
How to fix:
- Go to Edit mode
- Make sure the vertices are selected (the tool did it already for you)
- Press ‘W’