openstack4j icon indicating copy to clipboard operation
openstack4j copied to clipboard

When use identity().tokens().check() method,its throw a NullPointerException

Open a510431599 opened this issue 4 years ago • 0 comments

Exception in thread "main" java.lang.NullPointerException at org.jboss.resteasy.util.ReadFromStream.readFromStream(ReadFromStream.java:30) at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.bufferEntity(ClientResponse.java:322) at org.openstack4j.connectors.resteasy.HttpResponseImpl.readEntity(HttpResponseImpl.java:117)

### I tryed dubug , and find out that's because when use openstack rest api validate a token ,its return a empty response body, but before read entity from response stream there was no check if entity equals null .

2 3

a510431599 avatar Nov 25 '19 07:11 a510431599