commit | 36af26a8b804bccee8c13821257a8e53a7ab9895 | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Wed Aug 06 10:46:11 2008 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Wed Aug 06 10:46:11 2008 +0000 |
tree | 25df8beddc3d89d916d606848c642bb58dab3dd2 | |
parent | ddf314f799cc9d07d9046439dfab73fbe06978a2 [diff] |
Fix potential null pointer exception in case a repository has no matching resources for a bundle git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@683217 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java index bebaf06..f08b8f7 100644 --- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java +++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java
@@ -463,7 +463,7 @@ for ( int i = 0; i < repositories.length; i++ ) { Resource[] resources = repositories[i].getResources(); - for ( int j = 0; j < resources.length; j++ ) + for ( int j = 0; resources != null && j < resources.length; j++ ) { Resource res = resources[j]; if ( bundle.getSymbolicName().equals( res.getSymbolicName() ) )