You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by co...@apache.org on 2004/02/02 21:02:35 UTC

cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/fom CompilingClassLoader.java

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;