It does not give an error, but there is no data in the list.
Have you ever tried the code? Does it work?