throw new NullPointerException();
}
try
{
final Parser parser = getParser();
synchronized(parser)
{
final StyleSheetHandler handler = new StyleSheetHandler();
handler.init
(resourceManager, baseURL, -1, StyleKeyRegistry.getRegistry(), null);
setupNamespaces(namespaces, handler);
final InputSource source = new InputSource();
source.setCharacterStream(new StringReader(selector));
handler.initParseContext(source);
handler.setStyleRule(new CSSStyleRule(null, null));
parser.setDocumentHandler(handler);
final SelectorList selectorList = parser.parseSelectors(source);
CSSParserContext.getContext().destroy();
return selectorList;
}
}
catch (Exception e)