myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1733353 - /myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/css/FontAwesomeIconEncoder.java
Date Wed, 02 Mar 2016 19:13:09 GMT
Author: lofwyr
Date: Wed Mar  2 19:13:09 2016
New Revision: 1733353

URL: http://svn.apache.org/viewvc?rev=1733353&view=rev
Log:
TOBAGO-1516: Using Font Awesome as icon library
- no warning, when there is no icon

Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/css/FontAwesomeIconEncoder.java

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/css/FontAwesomeIconEncoder.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/css/FontAwesomeIconEncoder.java?rev=1733353&r1=1733352&r2=1733353&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/css/FontAwesomeIconEncoder.java
(original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-core/src/main/java/org/apache/myfaces/tobago/renderkit/css/FontAwesomeIconEncoder.java
Wed Mar  2 19:13:09 2016
@@ -57,6 +57,9 @@ public class FontAwesomeIconEncoder impl
   }
 
   private CssItem generateClass(final Icons icon) {
+    if (icon == null) {
+      return null;
+    }
     CssItem result = icons.get(icon);
     if (result == null) {
       LOG.warn("Missing icon: '" + icon + "'");



Mime
View raw message