You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ds...@apache.org on 2004/04/05 17:47:37 UTC

cvs commit: jakarta-tapestry/framework/src/org/apache/tapestry/form LinkSubmit.java

dsolis      2004/04/05 08:47:37

  Modified:    .        status.xml
               framework/src/org/apache/tapestry/form LinkSubmit.java
  Log:
  Fix bug 28177 (NPE in org.apache.tapestry.form.LinkSubmit). Thanks to sito@htf.highway.ne.jp
  
  Revision  Changes    Path
  1.39      +4 -1      jakarta-tapestry/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/status.xml,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- status.xml	4 Apr 2004 19:58:41 -0000	1.38
  +++ status.xml	5 Apr 2004 15:47:37 -0000	1.39
  @@ -240,6 +240,9 @@
     <action type="fix" dev="HLS" fixes-bug="28010">
        ExpressionBinding optimizes expressions incorrectly  	
     </action>
  +  <action type="fix" dev="DS" fixes-bug="28177" due-to="sito@htf.highway.ne.jp">
  +     NPE in org.apache.tapestry.form.LinkSubmit.
  +  </action>
   
    </release>
     
  
  
  
  1.6       +7 -0      jakarta-tapestry/framework/src/org/apache/tapestry/form/LinkSubmit.java
  
  Index: LinkSubmit.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/framework/src/org/apache/tapestry/form/LinkSubmit.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- LinkSubmit.java	19 Feb 2004 17:37:37 -0000	1.5
  +++ LinkSubmit.java	5 Apr 2004 15:47:37 -0000	1.6
  @@ -81,6 +81,13 @@
               {
                   Body body = Body.get(cycle);
   
  +				if (body == null)
  +				    throw new ApplicationRuntimeException(
  +				        Tapestry.format("must-be-contained-by-body", "LinkSubmit"),
  +				        this,
  +				        null,
  +				        null);
  +				        				
                   // make sure the submit function is on the page (once)
                   if (cycle.getAttribute(ATTRIBUTE_FUNCTION_NAME) == null)
                   {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org