You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by rr...@apache.org on 2010/02/12 11:56:36 UTC

svn commit: r909353 - /ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java

Author: rr
Date: Fri Feb 12 10:56:35 2010
New Revision: 909353

URL: http://svn.apache.org/viewvc?rev=909353&view=rev
Log:
ODE-743: Patch for java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 in DeploymentBrowser (thanks to Terry Mueller)

Modified:
    ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java

Modified: ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java?rev=909353&r1=909352&r2=909353&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java (original)
+++ ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java Fri Feb 12 10:56:35 2010
@@ -151,7 +151,7 @@
                         renderHtml(response, "Files in Bundle " + segments[1], new DocBody() {
                             public void render(Writer out) throws IOException {
                                 List<QName> processes = _store.listProcesses(segments[1]);
-                                if (processes != null) {
+                                if (processes != null && processes.size() > 0) {
                                     List<File> files = _store.getProcessConfiguration(processes.get(0)).getFiles();
                                     for (File file : files) {
                                         String relativePath = file.getPath().substring(file.getPath()
@@ -165,7 +165,7 @@
                         });
                     } else if (segments.length > 2) {
                         List<QName> processes = _store.listProcesses(segments[1]);
-                        if (processes != null) {
+                        if (processes != null && processes.size() > 0) {
                             List<File> files = _store.getProcessConfiguration(processes.get(0)).getFiles();
                             for (final File file : files) {
                                 String relativePath = requestURI.substring(deplUri + 12 + 9 + segments[1].length());