SonarQube reports this bug to me: A "NullPointerException" could be thrown; "getBody()" can return null.
This is the code:
if (holdingResponseEntity == null || holdingResponseEntity.getBody() == null || holdingResponseEntity.getBody().getError() || holdingResponseEntity.getBody().getResult() == null) { throw new HoldingNotFoundException("Holding whit id=" + idHolding + " not found-"); }