incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awi...@apache.org
Subject svn commit: r498727 - /incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PartialPageUtils.java
Date Mon, 22 Jan 2007 18:03:39 GMT
Author: awiner
Date: Mon Jan 22 10:03:38 2007
New Revision: 498727

URL: http://svn.apache.org/viewvc?view=rev&rev=498727
Log:
Don't NPE if there is no RequestContext.

Modified:
    incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PartialPageUtils.java

Modified: incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PartialPageUtils.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PartialPageUtils.java?view=diff&rev=498727&r1=498726&r2=498727
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PartialPageUtils.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/PartialPageUtils.java
Mon Jan 22 10:03:38 2007
@@ -44,7 +44,10 @@
 
   public static boolean isPartialRequest(FacesContext context)
   {
-    return RequestContext.getCurrentInstance().isPartialRequest(context);
+    RequestContext rc = RequestContext.getCurrentInstance();
+    if (rc == null)
+      return false;
+    return rc.isPartialRequest(context);
   }
 
 



Mime
View raw message