翻转""为equals调用方,防止空指针异常
This commit is contained in:
parent
2211a75704
commit
aad58640dc
@ -204,7 +204,7 @@ public class HttpUtils
|
||||
String ret = "";
|
||||
while ((ret = br.readLine()) != null)
|
||||
{
|
||||
if (ret != null && !ret.trim().equals(""))
|
||||
if (ret != null && !"".equals(ret.trim()))
|
||||
{
|
||||
result.append(new String(ret.getBytes("ISO-8859-1"), "utf-8"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user