屏蔽空指针异常

This commit is contained in:
2026-02-01 08:20:57 +08:00
parent e346591035
commit d3a9266d4c
@@ -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{