I have a java school project that is due to tomorrow. But I suddenly keep getting an error when im trying to change an objects attributes. I am working with a program called blueJ. It gives you a better overview of the project and there is no main class since you have to create (at least one) object yourself. But I have a problem. The GUI2 class has a method in which the name attribute of the player class should be changed. Now if create objects of each class and call the method by hand I get the error java.lang.nullpointerexeption in the line in which the name of the player is being changed.
Pls anwer quickly since I will get 0 points if I don't have my fully finished project by tomorrow.
Thank you in advance.