commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka Latka.java
Date Sun, 08 Dec 2002 13:37:56 GMT
dion        2002/12/08 05:37:56

  Modified:    latka/src/java/org/apache/commons/latka Latka.java
  Log:
  Allow for no context class loader
  
  Revision  Changes    Path
  1.40      +5 -1      jakarta-commons/latka/src/java/org/apache/commons/latka/Latka.java
  
  Index: Latka.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/Latka.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- Latka.java	17 Oct 2002 19:30:58 -0000	1.39
  +++ Latka.java	8 Dec 2002 13:37:56 -0000	1.40
  @@ -248,6 +248,10 @@
   
               if (_reportStylesheetUrl == null) {
               ClassLoader loader = Thread.currentThread().getContextClassLoader();
  +       	    if (loader == null) {
  +                // there may not be a context class loader
  +                loader = getClass().getClassLoader();
  +        	}
   
               xslSource = new StreamSource(
                               loader.getResourceAsStream(
  
  
  

--
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