Issue #390 has been reported by Robin Garner.

----------------------------------------
Bug #390: Config errors result in NPEs
http://tools.lsc-project.org/issues/390

Author: Robin Garner
Status: New
Priority: Normal
Assigned to: 
Category: 
Target version: 
Problem in version: 2.0rc1


Missing mandatory elements in the config result in NullPointerExceptions, which 
the default logging displays to the user as

Jan 18 17:44:53 - ERROR - org.lsc.exception.LscConfigurationException: 
java.lang.reflect.InvocationTargetException

with no other clue as to what is wrong.  The root cause is that unconfigured 
elements result in null values in fields, which aren't checked before being 
accessed.

I can think of several fixes: 
- Add a validation pass after parsing the config file
- Provide defaults for elements that aren't validated
- Validate config entries at the point where they're accessed


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-dev mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-dev

Reply via email to