commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1508938 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java
Date Wed, 31 Jul 2013 15:48:54 GMT
Author: ggregory
Date: Wed Jul 31 15:48:54 2013
New Revision: 1508938

URL: http://svn.apache.org/r1508938
Log:
Fix NPE when format is null.

Modified:
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java?rev=1508938&r1=1508937&r2=1508938&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java Wed Jul
31 15:48:54 2013
@@ -58,7 +58,7 @@ public class CSVPrinter implements Flush
     public CSVPrinter(final Appendable out, final CSVFormat format) {
         this.out = out;
         this.format = format == null ? CSVFormat.DEFAULT : format;
-        format.validate();
+        this.format.validate();
     }
 
     // ======================================================



Mime
View raw message