Commit 9270d513 authored by 唐峰's avatar 唐峰

极验异常时,处理空指针问题

parent 10115e1c
......@@ -298,10 +298,10 @@ public class GeetestLib {
}
String return_seccode = "";
try {
if (StringUtils.isNotEmpty(response)) {
JSONObject return_map = JSONObject.parseObject(response);
if (return_map == null) {
return val;
}
JSONObject return_map = JSONObject.parseObject(response);
return_seccode = return_map.getString("seccode");
gtlog("md5: " + Md5Util.build(return_seccode));
if (return_seccode.equals(Md5Util.build(seccode))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment