bug 317231 ability to define the jety configuration in a fragment that contains an etc/jetty.xml file

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2026 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Hugues Malphettes 2010-06-18 20:54:40 +00:00
parent 211cfb87af
commit ce7a271f7d
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ public class WebappRegistrationHelper
public void setup(BundleContext context, Map<String, String> configProperties) throws Exception
{
Enumeration<?> enUrls = context.getBundle().findEntries("/etc", "jetty.xml", false);System.err.println();
if (enUrls.hasMoreElements())
if (enUrls != null && enUrls.hasMoreElements())
{
URL url = (URL) enUrls.nextElement();
if (url != null)