Something isn't right with that image. Just tell us which line of the code you've posted the error is occurring on (you'll have to convert the file line number it's reporting to you to the line of code that you've posted, if they aren't exactly the same).
In your actionPerformed method, on line 217, you are adding something that's null to a container. I see only one line that could be the cause, p8.add(lbl[i]);. This would mean that lbl[i] is null, and that can only be the case if your database query returned 0 results.