ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From umag...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/filters/util ChainReaderHelper.java
Date Wed, 17 Jul 2002 02:44:17 GMT
umagesh     2002/07/16 19:44:17

  Modified:    src/main/org/apache/tools/ant/filters/util Tag:
                        ANT_15_BRANCH ChainReaderHelper.java
  Log:
  Set project if not null to avoid NPE from getting thrown.
  
  PR: 10875
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.4.2.1   +5 -0      jakarta-ant/src/main/org/apache/tools/ant/filters/util/ChainReaderHelper.java
  
  Index: ChainReaderHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/filters/util/ChainReaderHelper.java,v
  retrieving revision 1.4
  retrieving revision 1.4.2.1
  diff -u -r1.4 -r1.4.2.1
  --- ChainReaderHelper.java	12 Apr 2002 13:26:50 -0000	1.4
  +++ ChainReaderHelper.java	17 Jul 2002 02:44:17 -0000	1.4.2.1
  @@ -196,6 +196,11 @@
                                   final Reader[] rdr = {instream};
                                   instream =
                                       (Reader) constructors[j].newInstance(rdr);
  +                                if (project != null &&
  +                                        instream instanceof BaseFilterReader) {
  +                                    ((BaseFilterReader)
  +                                        instream).setProject(project);
  +                                }
                                   if (Parameterizable.class.isAssignableFrom(clazz)) {
                                       final Parameter[] params = filter.getParams();
                                       ((Parameterizable)
  
  
  

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


Mime
View raw message