Someone help me. I try to add a GreenfootImage to a List. The image does not equal null, but it still says NullPointer exception
List<GreenfootImage> images; // with something like this later images.add(image); // throwing NullPointerException // without something like this first images = new ArrayList<GreenfootImage>();