cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/profile/impl AuthenticationProfileManager.java
Date Fri, 07 Nov 2003 13:36:51 GMT
cziegeler    2003/11/07 05:36:51

  Modified:    src/blocks/portal/java/org/apache/cocoon/portal/profile/impl
                        AuthenticationProfileManager.java
  Log:
  Adding a better exception message
  
  Revision  Changes    Path
  1.12      +6 -2      cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/profile/impl/AuthenticationProfileManager.java
  
  Index: AuthenticationProfileManager.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/profile/impl/AuthenticationProfileManager.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- AuthenticationProfileManager.java	20 Oct 2003 13:37:10 -0000	1.11
  +++ AuthenticationProfileManager.java	7 Nov 2003 13:36:51 -0000	1.12
  @@ -120,7 +120,11 @@
       throws Exception {
           final RequestState state = this.getRequestState();
           final UserHandler handler = state.getHandler();
  -        final Configuration config = state.getApplicationConfiguration().getConfiguration("portal").getChild("profiles");
  +        final Configuration appConf = state.getApplicationConfiguration().getConfiguration("portal");
  +        if ( appConf == null ) {
  +            throw new ProcessingException("Configuration for portal not found in application
configuration.");
  +        }
  +        final Configuration config = appConf.getChild("profiles");
   
           HashMap parameters = new HashMap();
           parameters.put("config", config);
  
  
  

Mime
View raw message