Remove unnecesary catch and return null if getObject fails