Opened 15 years ago

Closed 15 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 by Nicklas Nordborg, 15 years ago

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:2 by Nicklas Nordborg, 15 years ago

Resolution: fixed
Status: assignedclosed

(In [4968]) Fixes #1332: TableWriter.tablePrintData() doesn't handle null values correctly

Note: See TracTickets for help on using tickets.