log css parse errors at their source and skip to avoid IllegalArgumentException 
in FileSystemStyleCache
-------------------------------------------------------------------------------------------------------

                 Key: TRINIDAD-2015
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2015
             Project: MyFaces Trinidad
          Issue Type: Improvement
          Components: Skinning
            Reporter: Jeanne Waldman


There was a typo in a css file and we got an IllegalArgumentException
that Selector was null. It would have been more helpful if we got an error
earlier in the code at parse time so we know what css file had the parse
error. 

The typo was like there was an extra ',' at the end of the selector list. This 
created a selector with the name "".

.abc, .cde, .efg, {color: red}
Do not add the empty selector to the list of selectors. Skip it. This will 
avoid the IllegalArgumentException in FileSystemStyleCache.

java.lang.IllegalArgumentException: selectorString must be non null and non
empty.
at
org.apache.myfaces.trinidad.style.Selector.createSelector(Selector.java:48)
at
org.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache$StylesImp
l.<init>(FileSystemStyleCache.java:1348)
at 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to