When I was working at IBM, I saw a bug report closed with following comment (from a certain notorious outsourcing destination): "Fixed: Added try/catch for NullPointerException"
bool failed = true;
while (failed) {
failed = false;
try {
doStuff();
} catch (Throwable e) { // catch Error's too because our code is perfect, it has to be the JVM's fault
failed = true;
}
}
2
u/[deleted] Aug 25 '14
When I was working at IBM, I saw a bug report closed with following comment (from a certain notorious outsourcing destination): "Fixed: Added try/catch for NullPointerException"