fix a css selector bug=.=!

master
yihua.huang 2013-08-01 22:55:19 +08:00
parent 7020b8648d
commit 9338e13c38
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ public class CssSelector implements Selector {
public String select(String text) {
Document doc = Jsoup.parse(text);
Elements elements = doc.select(selectorText);
if (CollectionUtils.isNotEmpty(elements)) {
if (CollectionUtils.isEmpty(elements)) {
return null;
}
return elements.get(0).outerHtml();