[seam-commits] Seam SVN: r9420 - trunk/src/main/org/jboss/seam/faces.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Oct 24 08:23:01 EDT 2008


Author: shane.bryzak at jboss.com
Date: 2008-10-24 08:23:01 -0400 (Fri, 24 Oct 2008)
New Revision: 9420

Modified:
   trunk/src/main/org/jboss/seam/faces/Redirect.java
Log:
fixed NPE

Modified: trunk/src/main/org/jboss/seam/faces/Redirect.java
===================================================================
--- trunk/src/main/org/jboss/seam/faces/Redirect.java	2008-10-24 11:31:17 UTC (rev 9419)
+++ trunk/src/main/org/jboss/seam/faces/Redirect.java	2008-10-24 12:23:01 UTC (rev 9420)
@@ -104,6 +104,10 @@
    public void captureCurrentView()
    {
       FacesContext context = FacesContext.getCurrentInstance();
+      
+      // If this isn't a faces request then just return
+      if (context == null) return;
+      
       parameters = Pages.instance().getStringValuesFromPageContext(context);
       
       if (context.getExternalContext().getRequestParameterMap().containsKey("actionMethod"))




More information about the seam-commits mailing list