myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r436842 - /myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java
Date Fri, 25 Aug 2006 16:04:29 GMT
Author: tomsp
Date: Fri Aug 25 09:04:28 2006
New Revision: 436842

URL: http://svn.apache.org/viewvc?rev=436842&view=rev
Log:
fixed Nullpointer

Modified:
    myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java

Modified: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java?rev=436842&r1=436841&r2=436842&view=diff
==============================================================================
--- myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java
(original)
+++ myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/RendererUtils.java
Fri Aug 25 09:04:28 2006
@@ -889,6 +889,8 @@
     }
 
     public static boolean isAdfOrTrinidadForm(UIComponent component) {
+        if (component == null)
+            return false;
         return ADF_FORM_COMPONENT_FAMILY.equals(component.getFamily()) ||
             TRINIDAD_FORM_COMPONENT_FAMILY.equals(component.getFamily());
     }



Mime
View raw message