Why the "java lang nullpointerexception" come, if every Player of my 2 Players have one getKey() method?
And why ("space".equals(Greenfoot.getKey()))/("enter".equals(Greenfoot.getKey())) are not still working?


String key = Greenfoot.getKey(); If(key!=null && key.equals("space"))