Open ljzforever opened 4 years ago
AdminAppServiceImpl类第54行
if (Strings.isNullOrEmpty(key)) { return adminApps.asList().subList(0, size); }
subList方法会调用Preconditions.checkPositionIndexes方法,当adminApps数量少于size时,会报数据越界错误
我的修正方法如下
if (Strings.isNullOrEmpty(key)) { ImmutableList<String> adminAppLists = adminApps.asList(); if (adminAppLists.size() > size) { return adminAppLists.subList(0, size); } return adminAppLists; }
已修复 https://github.com/qunarcorp/bistoury/commit/271b0594039bf1bec888e976920490ad96f27bc3
AdminAppServiceImpl类第54行
subList方法会调用Preconditions.checkPositionIndexes方法,当adminApps数量少于size时,会报数据越界错误
我的修正方法如下