Merge branch 'script_gj' into 'master'
优化匹配接口空指针异常 See merge request !1191
This commit is contained in:
+5
-1
@@ -339,7 +339,11 @@ public class AddressParserServiceImpl implements AddressParserService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
district = districtService.findById(district.getId(), MATCH_PROPERTY_FIELDS);
|
if(district == null){
|
||||||
|
logger.error("未找到匹配的CPDB数据:" + addr + "ID:" + matchedMate.getId());
|
||||||
|
}else{
|
||||||
|
district = districtService.findById(district.getId(), MATCH_PROPERTY_FIELDS);
|
||||||
|
}
|
||||||
if(district == null){
|
if(district == null){
|
||||||
logger.error("未找到匹配的CPDB数据:" + addr + "ID:" + district.getId());
|
logger.error("未找到匹配的CPDB数据:" + addr + "ID:" + district.getId());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user