I was having a problem with obtaining an id value from an object in a list. I am first storing user login details in a session and using these to set the criteria for a query that i use to populate the list. The list will only hold one object of type user. The list is being populated with the correct details as I checked through debugging, however when I try to iterate the list to obtain the id value of the object stored in the list my code does not even enter the for loop. The id value is the id of the user that the query is obtaining. The following is my code snippet:I was having a problem with obtaining an id val