[ http://issues.apache.org/jira/browse/VELOCITY-382?page=all ] Will Glass-Husain resolved VELOCITY-382: ----------------------------------------
Resolution: Fixed I'm assuming you are referring to ClasspathResourceLoader. There was definitely a problem in that it returned null when it should have thrown an exception. (I checked the other resource loaders - they looked fine). > getResourceStream returns null instead of throwing an > ResourceNotFoundException > ------------------------------------------------------------------------------- > > Key: VELOCITY-382 > URL: http://issues.apache.org/jira/browse/VELOCITY-382 > Project: Velocity > Type: Bug > Components: Source > Versions: 1.4 > Environment: Operating System: Windows XP > Platform: PC > Reporter: zpeedy > Fix For: 1.5 > > According to the documentation of org.apache.velocity.runtime.resource.loader. > getResourceStream(String name), it should throw an ResourceNotFoundException > when the resource with the given name can't be found. But the Exception isn't > thrown, null is returned as result from the "classLoader.getResourceAsStream( > name > )" method. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]