/ Published in: Java
I was refactoring code lately, changed a method to return null instead of throwing an error - yet this test kept working. I did not get why for quite some time.
Lesson learned: Never rely on Eclipse generating a try-catch-block without actually looking what kind of exception or error it catches.
Lesson learned: Never rely on Eclipse generating a try-catch-block without actually looking what kind of exception or error it catches.