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/java/org/apache/cocoon/components/flow/javascript/fom CompilingClassLoader.java
Date Mon, 02 Feb 2004 20:02:35 GMT
coliver     2004/02/02 12:02:35

  Modified:    src/java/org/apache/cocoon/components/flow/javascript/fom
                        CompilingClassLoader.java
  Log:
  Handle null returned by Source.getInputStream()
  
  Revision  Changes    Path
  1.7       +4 -1      cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/fom/CompilingClassLoader.java
  
  Index: CompilingClassLoader.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/fom/CompilingClassLoader.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- CompilingClassLoader.java	28 Jan 2004 17:48:59 -0000	1.6
  +++ CompilingClassLoader.java	2 Feb 2004 20:02:35 -0000	1.7
  @@ -210,6 +210,9 @@
               if (src == null) return null;
               try {
                   InputStream is = src.getInputStream();
  +                if (is == null) {
  +                    return null;
  +                }
                   byte[] buf = new byte[8192];
                   ByteArrayOutputStream baos = new ByteArrayOutputStream();
                   int count;
  
  
  

Mime
View raw message