[
https://issues.apache.org/jira/browse/TILES-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nicolas Le Bas closed TILES-493.
--------------------------------
> NPE at CompleteAutoloadTilesContainerFactory.getSourceURLs(..) if there are
> no META-INF/**/tiles*.xml
> -----------------------------------------------------------------------------------------------------
>
> Key: TILES-493
> URL: https://issues.apache.org/jira/browse/TILES-493
> Project: Tiles
> Issue Type: Bug
> Components: tiles-extras
> Affects Versions: 2.2.1
> Reporter: Mck SembWever
> Fix For: 2.2.2
>
>
> If there are no META-INF/**/tiles*.xml
> then
> WildcardServletTilesApplicationContext.getResources("classpath*:META-INF/**/tiles*.xml")
> will return null
> which there is no check for in
> CompleteAutoloadTilesContainerFactory.getSourceURLs(..)
> There is no documentation that getResources(..) may return null so it should
> be changed to return Collections.<URL>emptySet()
> Or documented that it may return null, and
> CompleteAutoloadTilesContainerFactory.getSourceURLs(..) made to test for a
> null result.
> PATCH:
> --- WildcardServletTilesApplicationContext
> +++ WildcardServletTilesApplicationContext
> @@ -85,1 +85,1 @@
> - Set<URL> urlSet = null;
> + Set<URL> urlSet = Collections.<URL>emptySet();
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira