Return-Path: Delivered-To: apmail-tiles-issues-archive@minotaur.apache.org Received: (qmail 75774 invoked from network); 15 Nov 2009 14:31:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Nov 2009 14:31:36 -0000 Received: (qmail 78721 invoked by uid 500); 15 Nov 2009 14:31:36 -0000 Delivered-To: apmail-tiles-issues-archive@tiles.apache.org Received: (qmail 78701 invoked by uid 500); 15 Nov 2009 14:31:36 -0000 Mailing-List: contact issues-help@tiles.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@tiles.apache.org Delivered-To: mailing list issues@tiles.apache.org Received: (qmail 78691 invoked by uid 99); 15 Nov 2009 14:31:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Nov 2009 14:31:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Nov 2009 14:31:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3364E234C045 for ; Sun, 15 Nov 2009 06:31:13 -0800 (PST) Message-ID: <1176621090.1258295473194.JavaMail.jira@brutus> Date: Sun, 15 Nov 2009 14:31:13 +0000 (UTC) From: "Antonio Petrelli (JIRA)" To: issues@tiles.apache.org Subject: [jira] Updated: (TILES-484) NPE in CompleteAutoloadTilesContainerFactory.getSourceURLs In-Reply-To: <955257917.1258044673506.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/TILES-484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Antonio Petrelli updated TILES-484: ----------------------------------- Fix Version/s: 2.2.2 > 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 > Assignee: Antonio Petrelli > Fix For: 2.2.2 > > Attachments: patch.txt > > > The method protected List 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: > > org.apache.tiles.extras.complete.CompleteAutoloadTilesListener > > 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.