Skip to content

Commit f4cc9a9

Browse files
committed
Charset cannot be null
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1603965 13f79535-47bb-0310-9956-ffa450edef68
1 parent fcaa267 commit f4cc9a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/org/apache/commons/csv/CSVParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public void testBackslashEscapingOld() throws IOException {
192192
@Ignore("CSV-107")
193193
public void testBOM() throws IOException {
194194
final URL url = ClassLoader.getSystemClassLoader().getResource("CSVFileParser/bom.csv");
195-
final CSVParser parser = CSVParser.parse(url, null, CSVFormat.EXCEL.withHeader());
195+
final CSVParser parser = CSVParser.parse(url, Charset.forName("UTF-8"), CSVFormat.EXCEL.withHeader());
196196
try {
197197
for (final CSVRecord record : parser) {
198198
final String string = record.get("Date");

0 commit comments

Comments
 (0)