SyntaxFix
Write A Post
Hire A Developer
Questions
You are trying to access the first element lstpp.get(0) of an empty array. Just add an element to your array and check for !lstpp.isEmpty() before accessing an element
lstpp.get(0)
!lstpp.isEmpty()