diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java index cd38a897..09a1bc5c 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -585,6 +585,10 @@ public class CSVFormat implements Serializable { sb.append(' '); sb.append("CommentStart=<").append(commentStart).append('>'); } + if (isNullHandling()) { + sb.append(' '); + sb.append("NullString=<").append(nullString).append('>'); + } if (getIgnoreEmptyLines()) { sb.append(" EmptyLines:ignored"); }