incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awi...@apache.org
Subject svn commit: r494657 - /incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/OutputUtils.java
Date Wed, 10 Jan 2007 00:05:36 GMT
Author: awiner
Date: Tue Jan  9 16:05:35 2007
New Revision: 494657

URL: http://svn.apache.org/viewvc?view=rev&rev=494657
Log:
Avoid NullPointerExceptions when an icon is non-existent (which might happen if it's not defined
in a skin at all)

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

Modified: incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/OutputUtils.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/OutputUtils.java?view=diff&rev=494657&r1=494656&r2=494657
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/OutputUtils.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/OutputUtils.java
Tue Jan  9 16:05:35 2007
@@ -262,7 +262,7 @@
     boolean             embedded
     ) throws IOException
   {
-    if (icon.isNull())
+    if ((icon == null) || icon.isNull())
       return;
 
     Map<String, Object> attrs = null;



Mime
View raw message