java.lang.IndexOutOfBoundsException: Index: 231536006, Size: 550

运行报错:java.lang.IndexOutOfBoundsException: Index: 231536006, Size: 550

解决方法:对list列表做非空判断,再执行逻辑

原因:list的下标与list大小不一致,从list取值时可能存在未null的情况

发布了135 篇原创文章 · 获赞 56 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/loulanyue_/article/details/104849124