Closed yantantether closed 4 years ago
Hi @yantantether,
Sorry for the delay in getting back to you on this. We aren't java experts but that seems like a reasonable suggestion but it's unlikely we will get round to it too soon I'm afraid. Would you be interested/able to put in a pull request for this?
Yes, I can try to get a PR together
Thanks! Check out our CONTRIBUTING.md and .github/PULL_REQUEST_TEMPLATE.md files for what we would ideally be looking for. Just shout if you need any help or guidance, we are very happy to help.
Thanks for your time once again!
I have created a PR that addresses this issue #177 .
To properly unit test this I would have to do some refactoring of NotificationClient.java
. I'll see if I get the time.
Thank you for your contribution. The changes you made are now available on Bintray.
We occasionally hit a NPE when using the Java Gov Notify client.
It happens on
conn.getErrorStream()
when the HTTP response code is not as expected. We don't know the underlying cause of why the stream is not available, perhaps a socket error.It would helpful to have a little more protection around lines 322-329 of
uk.gov.service.notify.NotificationClient
.Here is the stack trace: