I get a null pointer exception at this line :
private ArrayList<DrawableEntity> entitiesToDraw = Loader.instance().getDrawableEntities();
There is apparently no problem with the constructor of Loader :
public static Loader instance() {
if (instance == null) {
new Loader();
System.out.println("Loader ready");
}
return instance;
}
Because I get the message "Loader ready". I don't understand, the problem seem to be before the call to getDrawableEntities() but I see nothing and it is not inside getDrawableEntities().