|
@@ -293,13 +293,17 @@ public class MineStylePageActivity extends BaseMVPActivity<ActivityMineStylePage
|
|
|
}
|
|
|
if (!TextUtils.isEmpty(styleInfoBean.subjectId)) {
|
|
|
if (styleInfoBean.subjectId.contains(",")) {
|
|
|
- String[] splitId = styleInfoBean.subjectId.split(",");
|
|
|
- String[] splitName = styleInfoBean.subjectName.split(",");
|
|
|
- for (int i = 0; i < splitId.length; i++) {
|
|
|
- TeachableInstrumentBean instrumentBean = new TeachableInstrumentBean();
|
|
|
- instrumentBean.id = Integer.parseInt(splitId[i]);
|
|
|
- instrumentBean.name = splitName[i];
|
|
|
- selectTeachableInstrument.add(instrumentBean);
|
|
|
+ try {
|
|
|
+ String[] splitId = styleInfoBean.subjectId.split(",");
|
|
|
+ String[] splitName = styleInfoBean.subjectName.split(",");
|
|
|
+ for (int i = 0; i < splitId.length; i++) {
|
|
|
+ TeachableInstrumentBean instrumentBean = new TeachableInstrumentBean();
|
|
|
+ instrumentBean.id = Integer.parseInt(splitId[i]);
|
|
|
+ instrumentBean.name = splitName[i];
|
|
|
+ selectTeachableInstrument.add(instrumentBean);
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
}
|
|
|
} else {
|
|
|
TeachableInstrumentBean instrumentBean = new TeachableInstrumentBean();
|