This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git
The following commit(s) were added to refs/heads/master by this push:
new cbc710c9 Flip null test
cbc710c9 is described below
commit cbc710c926ed1bb0df93ecad33a05068483a7633
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jul 5 09:49:55 2026 -0400
Flip null test
---
src/main/java/org/apache/commons/csv/CSVFormat.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java
b/src/main/java/org/apache/commons/csv/CSVFormat.java
index a2a29136..60bb6a5e 100644
--- a/src/main/java/org/apache/commons/csv/CSVFormat.java
+++ b/src/main/java/org/apache/commons/csv/CSVFormat.java
@@ -2239,7 +2239,7 @@ public final class CSVFormat implements Serializable {
CharSequence charSequence;
if (value == null) {
// https://issues.apache.org/jira/browse/CSV-203
- if (null == nullString) {
+ if (nullString == null) {
charSequence = Constants.EMPTY;
} else if (QuoteMode.ALL == quoteMode) {
charSequence = quotedNullString;