Skip to content

Commit 7334a4a

Browse files
committed
Tables: actually use null for null column headers
If the map has a null key, use null for that column header. The Table API does allow for null column headers (which means no header), so there is no need to label that header with a string like "<null>".
1 parent 8f7d41a commit 7334a4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/scijava/table/Tables.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public String getHeader() {
9797
int c = 0;
9898
for (final Object key : data.get(0).keySet()) {
9999
if (col == c++) {
100-
colHeader = key == null ? "<null>" : key.toString();
100+
colHeader = key == null ? null : key.toString();
101101
break;
102102
}
103103
}

0 commit comments

Comments
 (0)