Hi,
i need help with a NullPointerException. Here is the errorcode:
java.lang.NullPointerException
at Playfield.Start(Playfield.java:356)
at Playfield.Game(Playfield.java:328)
at Playfield.act(Playfield.java:316)
And here is the code that I think is important for the error:
The error code is referencing to the line "G1.setLocation".
Thanks in advance for any advice
public class Playfield extends World
{
private StoneGreen1 G1;
...public void prepare()
{
...
StoneGreen1 G1 = new StoneGreen1();
addObject(G1, 0, 0);
...
} public void Start()
{
...
case 1:
System.out.println("1");
G1.setLocation(0,4);
break;
...

