Changed the point list to an array list to solve the null entry