Author: byrne
Date: Thu Apr 6 13:59:14 2006
New Revision: 392071
URL: http://svn.apache.org/viewcvs?rev=392071&view=rev
Log:
Fixed a NPE in Tomcat 5.5 where path was equal to "".
Todd Byrne
Modified:
xml/xindice/trunk/java/src/org/apache/xindice/server/UglyBrowser.java
Modified: xml/xindice/trunk/java/src/org/apache/xindice/server/UglyBrowser.java
URL:
http://svn.apache.org/viewcvs/xml/xindice/trunk/java/src/org/apache/xindice/server/UglyBrowser.java?rev=392071&r1=392070&r2=392071&view=diff
==============================================================================
--- xml/xindice/trunk/java/src/org/apache/xindice/server/UglyBrowser.java
(original)
+++ xml/xindice/trunk/java/src/org/apache/xindice/server/UglyBrowser.java Thu
Apr 6 13:59:14 2006
@@ -59,8 +59,9 @@
String contextPath = request.getContextPath();
StringBuffer sb = new StringBuffer();
String path = request.getQueryString();
+ log.debug("path = " + path);
sb.append("<html><body><center>");
- if (path == null) {
+ if (path == null || path.equals("")) {
sb.append("<h2>THIS IS AN UGLY DEBUG TOOL!</h2><p>");
sb.append("To browse the database, follow the link: ");
String [] databases = Database.listDatabases();