public void movementmodi(int movepov,int ym, int moveneg, int yp){
if(Station.level>0){
if(time==30){
move(movepov);
if(getWorld().getObjects(Zako.class)!=null){
setLocation(getX(),getY()-ym);
}
getImage().scale(40,35);
}
if(time==60){
move(moveneg);
if(getWorld()!=null&&getWorld().getObjects(Zako.class)!=null){
setLocation(getX(),getY()+yp);
}
getImage().scale(35,30);
}
}
}
java.lang.NullPointerException at line 51
LINE 51 IS:
if(getWorld().getObjects(Zako.class)!=null){.....]
