Opened 14 years ago
Closed 14 years ago
#1332 closed defect (fixed)
TableWriter.tablePrintData() doesn't handle null values correctly
Reported by: | Nicklas Nordborg | Owned by: | Nicklas Nordborg |
---|---|---|---|
Priority: | major | Milestone: | BASE 2.12.1 |
Component: | core | Version: | |
Keywords: | Cc: |
Description
The problematic line is:
if (d != null) print(d == null ? nv : d.toString());
which either prints the value of 'd' (converted to a string) or nothing. According to the documentation this method should print the value of 'nv' if 'd' is null. Fortunately the default value of 'nv' is the empty string, so this should not affect anything unless 'nv' has been changed in some place (there is no known code that does this today).
Change History (2)
comment:1 Changed 14 years ago by
Owner: | changed from everyone to Nicklas Nordborg |
---|---|
Status: | new → assigned |
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
(In [4968]) Fixes #1332: TableWriter?.tablePrintData() doesn't handle null values correctly