if (response != null && response.getBody() != null && response.getStatusCode() == HttpStatus.OK) {
return new BigDecimal(response.getBody());
}
I am getting possible null pointer dereference due to return value of called method on above code.
Can someone please let me know the exact issue and why it's an issue?
response.getBody() // returns a string value
Thanks in advance! Please let me know if any other details are needed.