I was writing a small application and when I tried to create an ImageIcon I always got an exception. The exception was caused by this line of code:
prayerLev
The only thing that can throw a NullPointerException in this line of code is the first ., which means that prayerLevel is null.
NullPointerException
.
prayerLevel