Pattern: Returning null
from catch
block
Issue: -
Returning null
from a catch
block often masks errors and requires the client to handle error codes. In some coding styles this is discouraged. This rule ignores methods with void
return type.