from what i see, the null values are correct.
here's what i think is happening.
1) you created an instance of SearchFileRecord
2) in that, you created an instance of RetrieveFileDetails
3) you created yet another instance of SearchFileRecord and attempted to get values from that, instead of that created in step 1).