Bug 684 : saveStrings outputs "null" for null Strings
Last modified: 2007-11-17 11:51




Status:
RESOLVED
Resolution:
WONTFIX -
Priority:
P2
Severity:
normal

 

Reporter:
fjen
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2007-11-13 11:05
rev 133, os-x 10.4, powerbook g4

saveStrings() outputs "null" for lines containing a null String. this is odd since reading it
back in gives a value for that line. i guess it should output "" (empty string) instead.

String[] tst = new String[3];

tst[0] = "123";
tst[2] = "abc";

saveStrings("test.txt",tst);

F
Additional Comment #1 From fry 2007-11-17 11:51
no, because an empty value is different from a null value. if you don't
want null you can fill the array with empty data.