Skip to content

Commit

Permalink
1.fixBug: 初始化时未设置数据,导致数组越界
Browse files Browse the repository at this point in the history
  • Loading branch information
caikaidev committed Oct 30, 2016
1 parent be0d055 commit 149d233
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void add(List<T> list){

@Override
public int getCount() {
return data == null ? 0 : Integer.MAX_VALUE;
return (data == null || data.size() == 0 ) ? 0 : Integer.MAX_VALUE;
}

public int getRealCount(){
Expand Down

0 comments on commit 149d233

Please sign in to comment.