In addition to logging and swallowing the exception, this method also then 
returns null. This is also a bad practice.
  
​
  
​The caller has to check for null. One of the reasons exceptions were invented 
was to free the user from needing to check for null or error codes.
  
— Miguel​
     

Reply via email to