commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-commons-sandbox/workflow/src/java/org/apache/commons/workflow/base BaseDescriptor.java
Date Sun, 18 Nov 2001 22:02:04 GMT
craigmcc    01/11/18 14:02:04

  Modified:    workflow/src/java/org/apache/commons/workflow/base
                        BaseDescriptor.java
  Log:
  When retrieving values from a Scope via JXPath, set the JXPathContext to
  lenient mode so that we get a null back (instead of a runtime exception)
  on a null value.
  
  Submitted by:	Colin Sharples <Colin.Sharples@hbl.co.nz>
  
  Revision  Changes    Path
  1.6       +5 -4      jakarta-commons-sandbox/workflow/src/java/org/apache/commons/workflow/base/BaseDescriptor.java
  
  Index: BaseDescriptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/workflow/src/java/org/apache/commons/workflow/base/BaseDescriptor.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- BaseDescriptor.java	2001/09/20 02:13:55	1.5
  +++ BaseDescriptor.java	2001/11/18 22:02:04	1.6
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons-sandbox/workflow/src/java/org/apache/commons/workflow/base/BaseDescriptor.java,v
1.5 2001/09/20 02:13:55 craigmcc Exp $
  - * $Revision: 1.5 $
  - * $Date: 2001/09/20 02:13:55 $
  + * $Header: /home/cvs/jakarta-commons-sandbox/workflow/src/java/org/apache/commons/workflow/base/BaseDescriptor.java,v
1.6 2001/11/18 22:02:04 craigmcc Exp $
  + * $Revision: 1.6 $
  + * $Date: 2001/11/18 22:02:04 $
    *
    * ====================================================================
    * 
  @@ -71,7 +71,7 @@
   /**
    * <p>Basic implementation of the <strong>Descriptor</strong> interface.</p>
    *
  - * @version $Revision: 1.5 $ $Date: 2001/09/20 02:13:55 $
  + * @version $Revision: 1.6 $ $Date: 2001/11/18 22:02:04 $
    * @author Craig R. McClanahan
    */
   
  @@ -298,6 +298,7 @@
   
           if (xpath != null) {
               JXPathContext jpc = context.getJXPathContext();
  +            jpc.setLenient(true);
               return (jpc.getValue("local/" + xpath));
           } else if (name != null) {
               if (scope == null)
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message