Why catching NullPointerException is considered Bad Practice
Do you catch NullPointerException or have you swallowed Exceptions by simply catching them and doing nothing. Have you wondered whether to throw an Exception or to catch it before it reaches the parent method. As a general rule, catching any RuntimeException is almost always a code smell. Probably, you could look after your code or…
Why catching NullPointerException is considered Bad Practice was originally published on













