[
https://issues.apache.org/jira/browse/VALIDATOR-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Niall Pemberton resolved VALIDATOR-226.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.4
Assignee: Niall Pemberton
Thanks for reporting this - I've fixed this in validator (now throws an
IllegalArgumentException indicating that the InputStream is null).
I also created an issue for this against Commons Digester (DIGESTER-111) -
which also failed to check that the InputStream isn't null.
Niall
> Null-Stream input to ValidatorResources leads to MalformedURLExceptions
> -----------------------------------------------------------------------
>
> Key: VALIDATOR-226
> URL: https://issues.apache.org/jira/browse/VALIDATOR-226
> Project: Commons Validator
> Issue Type: Improvement
> Components: Framework
> Affects Versions: 1.3.1 Release
> Environment: Should be regardless to OS or Java version
> Reporter: Lian Ort
> Assigned To: Niall Pemberton
> Priority: Minor
> Fix For: 1.4
>
>
> Providing the constructor of ValidatorResources with a null InputStream
> leads to a MalformedURLException,
> which leads the user (trying to find his error) in a complete wrong
> direction. Perhaps returning a NullPointerException or
> an IllegalArgumentException seems to be a better understandable reaction.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]