Check world is not null
Just some NetBeans bollix