tiles-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeroen van Vianen (JIRA)" <j...@apache.org>
Subject [jira] Created: (TILES-484) NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs
Date Thu, 12 Nov 2009 16:51:13 GMT
NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs

                 Key: TILES-484
                 URL: https://issues.apache.org/struts/browse/TILES-484
             Project: Tiles
          Issue Type: Bug
          Components: tiles-extras
    Affects Versions: 2.2.1
         Environment: Vista / JDK 6 / Spring 3.0.0 RC 1 / Spring MVC
            Reporter: Jeroen van Vianen

The method protected List<URL> getSourceURLs(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory) throws an NPE when there are either no resources
with tiles definitions in /WEB-INF/**/tiles*.xml, or in classpath*:META-INF/**/tiles*.xml,
because applicationContext.getResources() returns null rather than an empty Set in those cases.

In my web.xml I have:


And a few definitions in /WEB-INF/tiles.xml

If I add a file META-INF/tiles.xml with a bogus definition it works.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message