jstrachan 01/07/28 01:08:48
Modified: io/src/org/apache/taglibs/io URLTag.java
Log:
Fixed bug found by Pedro E. Gomez where there was a null pointer exception
Revision Changes Path
1.5 +4 -1 jakarta-taglibs/io/src/org/apache/taglibs/io/URLTag.java
Index: URLTag.java
===================================================================
RCS file: /home/cvs/jakarta-taglibs/io/src/org/apache/taglibs/io/URLTag.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- URLTag.java 2001/07/25 19:05:14 1.4
+++ URLTag.java 2001/07/28 08:08:48 1.5
@@ -79,7 +79,7 @@
/** A JSP Custom tag to make a URL request and output the response.
*
* @author <a href="mailto:[EMAIL PROTECTED]">James Strachan</a>
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public class URLTag extends AbstractTag implements PipeProducer, PipeConsumer {
@@ -279,6 +279,9 @@
//-------------------------------------------------------------------------
protected URLConnection getConnection() throws IOException {
if ( connection == null ) {
+ if ( fullURL == null ) {
+ fullURL = url;
+ }
URL theURL = URLHelper.createURL(fullURL, pageContext);
if ( TRACE ) {