You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-cvs@xml.apache.org by nd...@apache.org on 2005/04/12 22:27:02 UTC

cvs commit: xml-commons/java/src/org/apache/xml/resolver Catalog.java

ndw         2005/04/12 13:27:02

  Modified:    java/src/org/apache/xml/resolver Catalog.java
  Log:
  Handle case where base URI is initially null
  
  Revision  Changes    Path
  1.9       +5 -1      xml-commons/java/src/org/apache/xml/resolver/Catalog.java
  
  Index: Catalog.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/src/org/apache/xml/resolver/Catalog.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Catalog.java	6 Dec 2004 16:49:40 -0000	1.8
  +++ Catalog.java	12 Apr 2005 20:27:02 -0000	1.9
  @@ -923,7 +923,11 @@
         String value = entry.getEntryArg(0);
         URL newbase = null;
   
  -      catalogManager.debug.message(5, "BASE CUR", base.toString());
  +      if (base == null) {
  +	catalogManager.debug.message(5, "BASE CUR", "null");
  +      } else {
  +	catalogManager.debug.message(5, "BASE CUR", base.toString());
  +      }
         catalogManager.debug.message(4, "BASE STR", value);
   
         try {