You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2007/02/20 12:03:08 UTC

svn commit: r509509 - /myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UITree.java

Author: weber
Date: Tue Feb 20 03:03:07 2007
New Revision: 509509

URL: http://svn.apache.org/viewvc?view=rev&rev=509509
Log:
TOBAGO-297 ( tc:tree with rendered=false -> NPE in decodePhase)

Modified:
    myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UITree.java

Modified: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UITree.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UITree.java?view=diff&rev=509509&r1=509508&r2=509509
==============================================================================
--- myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UITree.java (original)
+++ myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/UITree.java Tue Feb 20 03:03:07 2007
@@ -192,6 +192,11 @@
   }
 
   public void processDecodes(FacesContext facesContext) {
+
+    if (!isRendered()) {
+      return;
+    }
+
     if (ComponentUtil.isOutputOnly(this)) {
       setValid(true);
     } else {