Commit 8474ebd6deabc784751ad464effedd00e876e6ad
1 parent
662eea2205
Exists in
master
and in
2 other branches
解决空指针问题
Showing 1 changed file with 2 additions and 3 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/CommonService.java
View file @
8474ebd
| ... | ... | @@ -35,10 +35,9 @@ |
| 35 | 35 | for (String srt : sets) { |
| 36 | 36 | if (StringUtils.isNotEmpty(srt)) { |
| 37 | 37 | BasicConfig basicConfig = basicConfigService.getOneBasicConfigById(srt); |
| 38 | - sb.append(basicConfig.getName()).append(','); | |
| 39 | - /* if (null != basicConfig && sb.indexOf(basicConfig.getName()) == -1) { | |
| 38 | + if (null != basicConfig /*&& sb.indexOf(basicConfig.getName()) == -1*/) { | |
| 40 | 39 | sb.append(basicConfig.getName()).append(','); |
| 41 | - }*/ | |
| 40 | + } | |
| 42 | 41 | } |
| 43 | 42 | } |
| 44 | 43 | if (sb.toString().endsWith(",")) { |