arrayList is not thread safe, if arraylist add item in multithread may produce ArrayIndexOutOfBoundsException
GitHub Pull Request #1511