List index out of bounds Exception in Salesforce
104K views
Jun 16, 2022
To avoid the System.ListException: List index out of bounds Exception in Salesforce, make sure the size of the list is checked before fetching list values using the index. For example, if you are trying to fetch list variable's second index values, make sure the size of the list is greater than or equal to 3. Note: Index starts from 0 and not from 1.
#Internet Software
# Reference