You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2003/08/26 08:43:32 UTC

cvs commit: cocoon-2.1/src/blocks/authentication-fw/java/org/apache/cocoon/webapps/authentication/components PipelineAuthenticator.java

cziegeler    2003/08/25 23:43:32

  Modified:    src/blocks/authentication-fw/java/org/apache/cocoon/webapps/authentication/components
                        PipelineAuthenticator.java
  Log:
  Fixing NPE in authentication reported bySonny Sukumar (ahimsadesi@yahoo.com)
  
  Revision  Changes    Path
  1.3       +3 -1      cocoon-2.1/src/blocks/authentication-fw/java/org/apache/cocoon/webapps/authentication/components/PipelineAuthenticator.java
  
  Index: PipelineAuthenticator.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/authentication-fw/java/org/apache/cocoon/webapps/authentication/components/PipelineAuthenticator.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PipelineAuthenticator.java	4 Aug 2003 03:06:30 -0000	1.2
  +++ PipelineAuthenticator.java	26 Aug 2003 06:43:32 -0000	1.3
  @@ -280,6 +280,8 @@
   
               if (doc != null) {
                   data = DOMUtil.getFirstNodeFromPath(doc, new String[] {"authentication","data"}, false);
  +            } else {
  +                doc = DOMUtil.createDocument();
               }
   
               // now create the following xml: