list判断为空的方法
目录
不单单是判断 list==null
还有判断 list.isEmpty是否为true
List<String> contents = getElementAgainstXpath(content, " //div[@class='cnt_bd']/p");
if (contents == null||contents.isEmpty()) {
contents = getElementAgainstXpath(content, "//div[@id='text_area']");
}