luehe       2002/09/30 16:30:35

  Modified:    jasper2/src/share/org/apache/jasper/runtime
                        PageContextImpl.java
  Log:
  Fixed Bugzilla 13094: Compliance Issue - NPE not thrown if a null
  reference is passed to PageContext.handlePageException(Exception) or
  PageContext.handlePageException(Throwable).
  
  Revision  Changes    Path
  1.21      +5 -3      
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java
  
  Index: PageContextImpl.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- PageContextImpl.java      20 Sep 2002 00:45:26 -0000      1.20
  +++ PageContextImpl.java      30 Sep 2002 23:30:35 -0000      1.21
  @@ -529,6 +529,8 @@
       public void handlePageException(Throwable t)
           throws IOException, ServletException 
       {
  +     if (t == null) throw new NullPointerException("null Throwable");
  +
        if (errorPageURL != null && !errorPageURL.equals("")) {
   
            // Set request attributes
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to