diff --git a/app/src/main/java/com/kunfei/bookshelf/widget/recycler/expandable/bean/GroupItem.java b/app/src/main/java/com/kunfei/bookshelf/widget/recycler/expandable/bean/GroupItem.java index 81ab60b5ba..d15f72c35d 100644 --- a/app/src/main/java/com/kunfei/bookshelf/widget/recycler/expandable/bean/GroupItem.java +++ b/app/src/main/java/com/kunfei/bookshelf/widget/recycler/expandable/bean/GroupItem.java @@ -63,7 +63,10 @@ public void setChildDatas(List childDatas) { } public void removeChild(int childPosition) { - + if (childDatas == null || childDatas.size() == 0) { + return; + } + childDatas.remove(childPosition); } public T getGroupData() {