I'm having an issue where I need to check if a world has a specific object in it, or whether it has been removed from the world. Essentially, I'm doing:
if(world.getObject(object.getID()) == null){
world.addObject(object);
}
The problem I'm having is that instead of returning null, the app is erroring out with the following message:
java.lang.RuntimeException: [ 1410369008776 ] - ERROR: Can't retrieve object #6!
at the line where I call world.getObject(object.getID());
Am I doing something wrong?