[jboss-cvs] jboss-seam/src/main/org/jboss/seam/contexts ...

Gavin King gavin.king at jboss.com
Wed Jul 25 10:40:30 EDT 2007


  User: gavin   
  Date: 07/07/25 10:40:30

  Modified:    src/main/org/jboss/seam/contexts  ServletLifecycle.java
  Log:
  fix some problems with test suite
  
  Revision  Changes    Path
  1.5       +1 -4      jboss-seam/src/main/org/jboss/seam/contexts/ServletLifecycle.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ServletLifecycle.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/contexts/ServletLifecycle.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- ServletLifecycle.java	22 Jun 2007 09:18:40 -0000	1.4
  +++ ServletLifecycle.java	25 Jul 2007 14:40:30 -0000	1.5
  @@ -36,10 +36,7 @@
   
      public static ServletContext getServletContext() 
      {
  -      if (servletContext==null)
  -      {
  -         throw new IllegalStateException("Attempted to invoke a Seam component outside the context of a web application");
  -      }
  +      //don't throw an exception if null, because of unit tests
         return servletContext;
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list