Closed emystein closed 2 years ago
I've identified that MockClient.defaultResponse can always be set to new Invocation(), avoiding potential NullPointerExceptions.
new Invocation()
All committers have signed the CLA.
but this is correct, an Invocation is a record of an invocation, a default invocation could or could not exist. You don't have any test documenting when a NPE might happen, can you add some?
I've identified that MockClient.defaultResponse can always be set to
new Invocation()
, avoiding potential NullPointerExceptions.