Return-Path: Delivered-To: apmail-tiles-issues-archive@minotaur.apache.org Received: (qmail 43091 invoked from network); 15 Nov 2009 13:13:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Nov 2009 13:13:36 -0000 Received: (qmail 38447 invoked by uid 500); 15 Nov 2009 13:13:36 -0000 Delivered-To: apmail-tiles-issues-archive@tiles.apache.org Received: (qmail 38425 invoked by uid 500); 15 Nov 2009 13:13: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 38415 invoked by uid 99); 15 Nov 2009 13:13:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Nov 2009 13:13:36 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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 13:13:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 04757234C04C for ; Sun, 15 Nov 2009 05:13:14 -0800 (PST) Message-ID: <2080859352.1258290794016.JavaMail.jira@brutus> Date: Sun, 15 Nov 2009 13:13:14 +0000 (UTC) From: "Antonio Petrelli (JIRA)" To: issues@tiles.apache.org Subject: [jira] Assigned: (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 [ https://issues.apache.org/struts/browse/TILES-484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Antonio Petrelli reassigned TILES-484: -------------------------------------- Assignee: Antonio Petrelli > 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 > 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.