openstack4j
openstack4j copied to clipboard
When use identity().tokens().check() method,its throw a NullPointerException
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 .