When I started to encounter this problem, my first reaction was, "the data is out of bounds, the problem should be inside the array." Then I'll find it in the data. But all the relevant data are checked again, the data is not a problem ah.
Then I promised all the data. Constant testing. found that the data of a place sent a change. There is a certain chance that this change can happen. And then I came up with this by accident. The discovery is that this set of data is another interface of data.
Then I look for the reason AH: it is an interface data is very complex, the query time is relatively long. Another interface data is loaded quickly. In the loading of the interface slow data, click on the loading fast interface, two sets of data meet. When loading slow data instead of the data you should have, you will get an error (this is why there is a contingency).
First write, time is more hurried. Writing this is to facilitate their own memory.
Data out of Bounds Bug,java.lang.indexoutofboundsexception:invalid index 1, size is 1