null pointer exception at the if(mouse.getButton()==1){ line. I don't know what's wrong. can anyone help?
public void act() { MouseInfo mouse = Greenfoot.getMouseInfo(); GreenfootSound menu=new GreenfootSound("Menu.wav"); if(mouse.getButton()==1){ menu.stop(); } }