Java : Error handling: empty catch block