[DISCUSS] returning empty field values

2015-01-12 Thread 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 emp

Re: [DISCUSS] returning empty field values

2015-01-12 Thread Tilman Hausherr
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.

Re: [DISCUSS] returning empty field values

2015-01-12 Thread John Hewson
Yes, avoiding null where possible is very good. -- John > On 12 Jan 2015, at 08:25, Maruan Sahyoun wrote: > > 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 PDFB