屏蔽空指针异常
This commit is contained in:
+1
@@ -346,6 +346,7 @@ public class AddressParserServiceImpl implements AddressParserService {
|
||||
}
|
||||
if(district == null){
|
||||
logger.error("未找到匹配的CPDB数据:" + addr + "ID:" + matchedMate.getId());
|
||||
return new Building();
|
||||
}
|
||||
return new Building(district, scoreResult.getScore(matchedMate));
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user