You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2007/02/26 18:20:06 UTC
[jira] Resolved: (VALIDATOR-226) Null-Stream input to
ValidatorResources leads to MalformedURLExceptions
[ 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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org