EHC ❯ Abuse of Exceptions
-
Bug
-
Status: Closed
-
-
Resolution: Fixed
-
-
-
drb
-
Reporter: sourceforgetracker
-
September 21, 2009
-
0
-
Watchers: 0
-
September 22, 2009
-
September 22, 2009
Description
The class net.sf.ehcache.config.ConfigurationHelper uses several times the idiom
try { className = obj.field; // obj.getter(); } catch (Throwable t) { // }
where the only possible Exception is a NPE because obj could be null.
These should be rewritten as
if (obj != null) className = obj.field;
Sourceforge Ticket ID: 1831755 - Opened By: tomy - 14 Nov 2007 12:48 UTC
Re-opening so that I can properly close out these issues and have correct Resolution status in Jira