You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2013/10/07 11:04:02 UTC

svn commit: r1529799 - /myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java

Author: lofwyr
Date: Mon Oct  7 09:04:02 2013
New Revision: 1529799

URL: http://svn.apache.org/r1529799
Log:
TOBAGO-1228: Setting JSF 2.0 as default version for Tobago
  - updating event handling
  - using MethodExpression instead of MethodBinding
 
 fix NullPointerException if there is no state defined in the page

Modified:
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java?rev=1529799&r1=1529798&r2=1529799&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java Mon Oct  7 09:04:02 2013
@@ -431,8 +431,9 @@ public abstract class AbstractUISheet ex
     } else if (facesEvent instanceof PageActionEvent) {
       if (facesEvent.getComponent() == this) {
         final MethodExpression listener = getStateChangeListenerExpression();
-        listener.invoke(getFacesContext().getELContext(), new Object[]{facesEvent});
-
+        if (listener != null) {
+          listener.invoke(getFacesContext().getELContext(), new Object[]{facesEvent});
+        }
         performPaging((PageActionEvent) facesEvent);
       }
     } else if (facesEvent instanceof SortActionEvent) {