@Override
public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) {
VideoTask videoTask = new VideoTask(paccakModel, childPosition, video);
videoTask.execute();
ArrayList<VideoModelXml> test = videoTask.getVideoModelXmls();
test.get(0);
video.setVideoPath(test.get(0).getUrlVideo());
video.start();
return true;
}
I have an arraylist and its size is 1, but when i get at index 0, i get = java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 can anybody tell me, what is going on?
(我有一个arraylist,它的大小是1,但是当我到达索引0时,我会得到= java.lang.IndexOutOfBoundsException:索引:0,大小:0谁能告诉我,这是怎么回事?)
ask by Hamizul Fuad translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…