Clean code ideology advises to use empty strings / empty lists instead
of null, so I'd agree with you.
Tilman
Am 12.01.2015 um 17:25 schrieb Maruan Sahyoun:
Hi,
as I'm currently enhancing the AcroForms functionality one question came to
mind which is how empty field values shall be returned. Currently - as with
most parts of PDFBox - if a value, dictionary item … is not existing null will
be returned. I'm considering to change that to return an empty String/List …
for AcroForms only as this is more inline with a typical form filling
application. In addition an empty string is easier to handle than having null
checks all over.
WDYT?
BR
Maruan