Commit eeb13a3a1ce18293e979b40318fbddda8f832fd4
1 parent
0292ae51
update
Showing
1 changed file
with
6 additions
and
2 deletions
src/main/java/com/bsth/data/schedule/DayOfSchedule.java
| ... | ... | @@ -563,8 +563,12 @@ public class DayOfSchedule implements CommandLineRunner { |
| 563 | 563 | */ |
| 564 | 564 | public boolean isFirstOut(ScheduleRealInfo sch){ |
| 565 | 565 | List<ScheduleRealInfo> list = nbbmScheduleMap.get(sch.getClZbh()); |
| 566 | - if(list.get(0) == sch && sch.getBcType().equals("out")) | |
| 567 | - return true; | |
| 566 | + try { | |
| 567 | + if(list.get(0) == sch && sch.getBcType().equals("out")) | |
| 568 | + return true; | |
| 569 | + } catch (IndexOutOfBoundsException e) { | |
| 570 | + logger.error("小小的数组越界,无伤大雅!"); | |
| 571 | + } | |
| 568 | 572 | return false; |
| 569 | 573 | } |
| 570 | 574 | ... | ... |