cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From step...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/javaflow/java/org/apache/cocoon/samples/flow/java CalculatorFlow.java
Date Tue, 06 Apr 2004 10:40:03 GMT
stephan     2004/04/06 03:40:03

  Modified:    src/blocks/javaflow/java/org/apache/cocoon/samples/flow/java
                        CalculatorFlow.java
  Log:
  Catch also NPEs.
  
  Revision  Changes    Path
  1.5       +1 -1      cocoon-2.1/src/blocks/javaflow/java/org/apache/cocoon/samples/flow/java/CalculatorFlow.java
  
  Index: CalculatorFlow.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/javaflow/java/org/apache/cocoon/samples/flow/java/CalculatorFlow.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- CalculatorFlow.java	4 Apr 2004 06:35:08 -0000	1.4
  +++ CalculatorFlow.java	6 Apr 2004 10:40:03 -0000	1.5
  @@ -51,7 +51,7 @@
           float value = 0f;
           try {
               value = Float.parseFloat(getRequest().getParameter(name));
  -        } catch (NumberFormatException nfe) {
  +        } catch (Exception e) {
               sendMessage("Error: \""+getRequest().getParameter(name)+"\" is not a correct
number!");
           }
           return value;
  
  
  

Mime
View raw message