killbilling/recurly-java-library — pull request #56 by ospector (2014-10-23 06:59:57+00:00)
Title: Protect against null error object

In certain situations, library fails to parse the recurly error message (example below). This will lead to a null RecurlyAPIError object (which is fine) and an NPE in the RecurlyAPIException ctr - which is not.
This fix just guards against this, so that we have a reasonable RecurlyAPIException, and not an NPE.

Example:
RecurlyClient@832 inits recurlyError with null. An exception in line 834 would lead to an NPE in line 838.