Added logic to handle null value returned from Contact list