myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject svn commit: r1812112 - /myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlCommandScriptRenderer.java
Date Fri, 13 Oct 2017 11:23:53 GMT
Author: tandraschko
Date: Fri Oct 13 11:23:53 2017
New Revision: 1812112

URL: http://svn.apache.org/viewvc?rev=1812112&view=rev
Log:
MYFACES-4163 fixed NPE

Modified:
    myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlCommandScriptRenderer.java

Modified: myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlCommandScriptRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlCommandScriptRenderer.java?rev=1812112&r1=1812111&r2=1812112&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlCommandScriptRenderer.java
(original)
+++ myfaces/core/branches/2.3.x/impl/src/main/java/org/apache/myfaces/renderkit/html/HtmlCommandScriptRenderer.java
Fri Oct 13 11:23:53 2017
@@ -470,7 +470,7 @@ public class HtmlCommandScriptRenderer e
             {
                 if (!first)
                 {
-                    retVal.append(':');
+                    retVal.append(',');
                 }
                 else
                 {
@@ -583,6 +583,11 @@ public class HtmlCommandScriptRenderer e
      */
     private Collection<String> getCollectionFromSpaceSplitString(String stringValue)
     {
+        if (stringValue == null || stringValue.trim().isEmpty())
+        {
+            return Collections.emptyList();
+        }
+        
         //@special handling for @all, @none, @form and @this
         switch (stringValue)
         {



Mime
View raw message