Commit 8d3413bd by jinxin

空指针异常处理

parent 6bd01344
......@@ -208,6 +208,11 @@ public class MaterialServiceImpl implements MaterialService {
url = entity.getImgUrl() ;
}
String[] arr = null ;
//空指针异常处理
if (url == null){
logger.info("url不存在!");
return jp;
}
if(url.contains("?")) {
arr = url.split("\\?")[0].split("/") ;
}else {
......
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