jeevatkm / digitalocean-api-java

DigitalOcean API Client in Java

Home Page:https://www.digitalocean.com/community/projects/api-client-in-java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NullPointerException when deleting droplet in version 2.5

robertvazan opened this issue · comments

java.lang.NullPointerException
at com.myjeeva.digitalocean.impl.DigitalOceanClient.perform(DigitalOceanClient.java:1088)
at com.myjeeva.digitalocean.impl.DigitalOceanClient.deleteDroplet(DigitalOceanClient.java:326)

This doesn't happen in version 2.4, so the bug is in changesets between 2.4 and 2.5. I dropped there with debugger and it looks like 2.5 assumes different REST response than the one actually received.

Thanks for reporting, can you please provide some insight on response format?

@robertvazan Can you please provide sample of response format?

@robertvazan I found it. Applying fix.

@robertvazan I have published 2.6-SNAPSHOT to OSS.

Can you please verify and share your feedback?