CDISR5108E

The front routine cannot be called on an empty list, which has no element at index 0.

The application is invoking the front routine on an empty list, and there is no element to return.
Call the front routine on a list that is not empty.