how can the following code result in an nullpointerexception
if(Greenfoot.mouseClicked(null)) { MouseInfo mouse = Greenfoot.getMouseInfo(); int button = mouse.getButton(); // the line with the error }