|
@@ -189,7 +189,9 @@ public class SearchHouseController extends BaseController {
|
189
|
189
|
SearchHouseVO searchHouseVO = iSearchHouseService.selectSearchHouseDetail(id);
|
190
|
190
|
if (!StringUtils.isEmpty(searchHouseVO.getIntentArea())) {
|
191
|
191
|
TdCity city = tdCityService.getById(searchHouseVO.getIntentArea());
|
192
|
|
- searchHouseVO.setName(city.getName());
|
|
192
|
+ if(null != city){
|
|
193
|
+ searchHouseVO.setName(city.getName());
|
|
194
|
+ }
|
193
|
195
|
}
|
194
|
196
|
responseBean.addSuccess(searchHouseVO);
|
195
|
197
|
}catch (Exception e){
|