cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/xml/dom DOMStreamer.java
Date Sun, 09 Mar 2003 20:38:30 GMT
sylvain     2003/03/09 12:38:30

  Modified:    src/java/org/apache/cocoon/xml/dom DOMStreamer.java
  Log:
  Fix a NPE reported by Michael Wechner. Note that this fix is a filter that prevents null
to be stored, but doesn't solve the cause
  
  Revision  Changes    Path
  1.2       +4 -1      cocoon-2.1/src/java/org/apache/cocoon/xml/dom/DOMStreamer.java
  
  Index: DOMStreamer.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/xml/dom/DOMStreamer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DOMStreamer.java	9 Mar 2003 00:09:48 -0000	1.1
  +++ DOMStreamer.java	9 Mar 2003 20:38:30 -0000	1.2
  @@ -545,6 +545,9 @@
                * an existing one.
                */
               public void put(String prefix, String namespaceURI) {
  +            	// FIXME (SW): it appears that prefix can be null (reported by Michael Wechner)
  +            	if (prefix == null) return;
  +            	
                   if (namespaceDeclarations == null)
                       namespaceDeclarations = new HashMap();
                   namespaceDeclarations.put(prefix, namespaceURI);
  
  
  

Mime
View raw message