Skip to content

Commit 2b14b16

Browse files
committed
Fix NPE when format is null.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1508938 13f79535-47bb-0310-9956-ffa450edef68
1 parent a062477 commit 2b14b16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/csv/CSVPrinter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class CSVPrinter implements Flushable, Closeable {
5858
public CSVPrinter(final Appendable out, final CSVFormat format) {
5959
this.out = out;
6060
this.format = format == null ? CSVFormat.DEFAULT : format;
61-
format.validate();
61+
this.format.validate();
6262
}
6363

6464
// ======================================================

0 commit comments

Comments
 (0)