You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Benedikt Ritter <be...@gmail.com> on 2013/07/31 19:46:43 UTC

Re: svn commit: r1508938 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java

Whoops that's my one… thanks for fixing :)

Am 31.07.2013 um 17:48 schrieb ggregory@apache.org:

> 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();
>     }
> 
>     // ======================================================
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org