|
@@ -154,10 +154,11 @@ public class AreaService {
|
|
|
|
|
|
public List<AmapAddressV3> getAddressPoisByAddr(String addr){
|
|
|
String[] strs = AddressMatcher.matchProvinceAndCity(addr);
|
|
|
-
|
|
|
- for(String str : strs){
|
|
|
- if(StringUtils.hasText(str)){
|
|
|
- addr = addr.replace(str, "");
|
|
|
+ if(strs != null){
|
|
|
+ for(String str : strs){
|
|
|
+ if(StringUtils.hasText(str)){
|
|
|
+ addr = addr.replace(str, "");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|