Skip to content

Commit

Permalink
Merge pull request #229 from rafox2005/master
Browse files Browse the repository at this point in the history
Fixed Quota Request Bug (NullPointerException) when the resource is N…
  • Loading branch information
dkocher authored Nov 22, 2021
2 parents 462f10a + 0980234 commit 3e0c98d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/github/sardine/impl/SardineImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,10 @@ public DavQuota getQuota(String url) throws IOException
}
else
{
return new DavQuota(responses.get(0));
DavResource resource = new DavResource(responses.get(0));
if (resource.getStatusCode() == 200) return new DavQuota(resource);
}
return null;
}

@Override
Expand Down

0 comments on commit 3e0c98d

Please sign in to comment.