You need to create a new ArrayList rather than initializing it to null aka ArrayList<Integer> list = new ArrayList<Integer>().
Type: Posts; User: copeg
You need to create a new ArrayList rather than initializing it to null aka ArrayList<Integer> list = new ArrayList<Integer>().