dion 2005/01/06 01:00:12 Modified: jelly/src/java/org/apache/commons/jelly JellyContext.java Log: Handle systemId being null. PR: JELLY-189 Obtained from:Jeff Gregory Submitted by: Jeff Gregory Reviewed by: dIon Revision Changes Path 1.63 +8 -3 jakarta-commons/jelly/src/java/org/apache/commons/jelly/JellyContext.java Index: JellyContext.java =================================================================== RCS file: /home/cvs/jakarta-commons/jelly/src/java/org/apache/commons/jelly/JellyContext.java,v retrieving revision 1.62 retrieving revision 1.63 diff -u -r1.62 -r1.63 --- JellyContext.java 28 Dec 2004 01:39:23 -0000 1.62 +++ JellyContext.java 6 Jan 2005 09:00:12 -0000 1.63 @@ -956,9 +956,14 @@ */ protected URL getJellyContextURL(InputSource source) throws MalformedURLException { String text = source.getSystemId(); - int idx = text.lastIndexOf('/'); - text = text.substring(0, idx + 1); - return new URL(text); + if (text != null) { + int idx = text.lastIndexOf('/'); + text = text.substring(0, idx + 1); + return new URL(text); + } else { + return null; + } + } /**
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]