cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From coli...@apache.org
Subject cvs commit: cocoon-2.1/src/scratchpad/src/org/apache/cocoon/components/flow/javascript/fom FOM_Cocoon.java
Date Mon, 07 Jul 2003 06:24:06 GMT
coliver     2003/07/06 23:24:06

  Modified:    src/scratchpad/src/org/apache/cocoon/components/flow/javascript/fom
                        FOM_Cocoon.java
  Log:
  Don't swallow exceptions
  
  Revision  Changes    Path
  1.11      +4 -9      cocoon-2.1/src/scratchpad/src/org/apache/cocoon/components/flow/javascript/fom/FOM_Cocoon.java
  
  Index: FOM_Cocoon.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/scratchpad/src/org/apache/cocoon/components/flow/javascript/fom/FOM_Cocoon.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- FOM_Cocoon.java	6 Jul 2003 23:27:24 -0000	1.10
  +++ FOM_Cocoon.java	7 Jul 2003 06:24:06 -0000	1.11
  @@ -224,14 +224,9 @@
        * TODO: Do we want to restrict the access of sitemap components? (RP)
        * TODO: Do we want to raise an error or return null? (RP)
        */  
  -    public Object jsFunction_getComponent( String id ) { 
  -        Object o = null;
  -        try {
  -            o = this.componentManager.lookup( id );
  -        } catch (ComponentException e) {
  -            o = null; 
  -        }
  -        return o;
  +    public Object jsFunction_getComponent(String id) 
  +	throws Exception { 
  +	return componentManager.lookup(id);
       }
       
       /**
  
  
  

Mime
View raw message