Re: [DISCUSS] return values for functions

2018-02-09 Thread Maruan Sahyoun
low us to customize the message of the exception and let >>> the user know why they aren't getting their expected results. >>> >>> Any thoughts? >>> >>> Mark Tanner >>> >>> From: Tilman

Re: [DISCUSS] return values for functions

2018-02-09 Thread Tilman Hausherr
g their expected results. Any thoughts? Mark Tanner From: Tilman Hausherr [thaush...@t-online.de] Sent: 09 February 2018 18:50 To: dev@pdfbox.apache.org Subject: Re: [DISCUSS] return values for functions Am 09.02.2018 um 19:20 schrieb Andreas Lehmkuehler:

Re: [DISCUSS] return values for functions

2018-02-09 Thread Maruan Sahyoun
This will also allow us to customize the message of the exception and let the > user know why they aren't getting their expected results. > > Any thoughts? > > Mark Tanner > > From: Tilman Hausherr [thaush...@t-online.de] > Sen

Re: [DISCUSS] return values for functions

2018-02-09 Thread Tilman Hausherr
st. So it isn't abnormal, so an exception wouldn't make sense. Tilman Any thoughts? Mark Tanner From: Tilman Hausherr [thaush...@t-online.de] Sent: 09 February 2018 18:50 To: dev@pdfbox.apache.org Subject: Re: [DISCUSS] return values for function

RE: [DISCUSS] return values for functions

2018-02-09 Thread Mark Tanner
2018 18:50 To: dev@pdfbox.apache.org Subject: Re: [DISCUSS] return values for functions Am 09.02.2018 um 19:20 schrieb Andreas Lehmkuehler: > Am 17.01.2018 um 18:41 schrieb Maruan Sahyoun: >> Hi, >> >> many of our methods return null in case an entry can not be found >> p

Re: [DISCUSS] return values for functions

2018-02-09 Thread Tilman Hausherr
Am 09.02.2018 um 19:20 schrieb Andreas Lehmkuehler: Am 17.01.2018 um 18:41 schrieb Maruan Sahyoun: Hi, many of our methods return null in case an entry can not be found potentially causing NPEs. For 3.0 what about starting to change that so we return the expected object in the PDModel althoug

Re: [DISCUSS] return values for functions

2018-02-09 Thread Maruan Sahyoun
> Am 09.02.2018 um 19:20 schrieb Andreas Lehmkuehler : > > Am 17.01.2018 um 18:41 schrieb Maruan Sahyoun: >> Hi, >> many of our methods return null in case an entry can not be found >> potentially causing NPEs. For 3.0 what about starting to change that so we >> return the expected object in th

Re: [DISCUSS] return values for functions

2018-02-09 Thread Andreas Lehmkuehler
Am 17.01.2018 um 18:41 schrieb Maruan Sahyoun: Hi, many of our methods return null in case an entry can not be found potentially causing NPEs. For 3.0 what about starting to change that so we return the expected object in the PDModel although I understand that this might mean that for some ti

Re: [DISCUSS] return values for functions

2018-01-17 Thread Tilman Hausherr
I have read about this concept "don't use null, return empty list instead" often and I like it... I haven't changed anything here because I'm always wondering whether there could be a case where we want to know whether the object is missing, or when we write back the object and a PDF would then