Error getColor ArrayIndexOutOfBounds