Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.7
-
None
-
None
Description
If the settings are not allowing empty columns headers you can currently use a single empty header. This is because column headers are only checked for empty when they are duplicates. So it is the second empty header (the first duplicate) that raises an error. This test should pass but does not:
@Test(expected = IllegalArgumentException.class) public void testHeadersMissingOneColumnException() throws Exception { final Reader in = new StringReader("a,,c,d\n1,2,3,4\nx,y,z,zz"); CSVFormat.DEFAULT.withHeader().parse(in).iterator(); }
Attachments
Issue Links
- links to