Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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,
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