You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2007/02/23 16:07:45 UTC
svn commit: r510973 -
/myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/FormRenderer.java
Author: bommel
Date: Fri Feb 23 07:07:44 2007
New Revision: 510973
URL: http://svn.apache.org/viewvc?view=rev&rev=510973
Log:
avoid NPE
Modified:
myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/FormRenderer.java
Modified: myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/FormRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/FormRenderer.java?view=diff&rev=510973&r1=510972&r2=510973
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/FormRenderer.java (original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/FormRenderer.java Fri Feb 23 07:07:44 2007
@@ -37,7 +37,7 @@
UIPage page = ComponentUtil.findPage(form);
String actionId = page.getActionId();
String clientId = form.getClientId(facesContext);
- if (actionId.startsWith(clientId)) {
+ if (actionId != null && actionId.startsWith(clientId)) {
form.setSubmitted(true);
}
super.decode(facesContext, form);