Skip to content

Commit e5c1ff3

Browse files
committed
Merge pull request #12 from nomiero/master
Bug fixes
2 parents d9896cc + 81e2b9c commit e5c1ff3

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.microsoft.azure</groupId>
55
<artifactId>azure-documentdb</artifactId>
6-
<version>0.9.3</version>
6+
<version>0.9.4</version>
77
<name>${project.groupId}:${project.artifactId}</name>
88
<description>Java SDK for Microsoft Azure DocumentDB</description>
99
<url>http://azure.microsoft.com/en-us/services/documentdb/</url>

src/com/microsoft/azure/documentdb/DocumentClientException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public long getRetryAfterInMilliseconds() {
6868
String header = this.responseHeaders.get(
6969
HttpConstants.HttpHeaders.RETRY_AFTER_IN_MILLISECONDS);
7070

71-
if (!header.isEmpty()) {
71+
if (header != null && !header.isEmpty()) {
7272
long retryIntervalInMilliseconds = Long.valueOf(header);
7373
return retryIntervalInMilliseconds;
7474
}

src/com/microsoft/azure/documentdb/HttpConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public static class Versions {
153153

154154
public static String CURRENT_VERSION = "2014-08-21";
155155

156-
public static String USER_AGENT = "documentdb-java-sdk-0.9.3";
156+
public static String USER_AGENT = "documentdb-java-sdk-0.9.4";
157157
}
158158

159159
public static class StatusCodes {

src/com/microsoft/azure/documentdb/QueryIterable.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ public List<T> fetchNextBlock()
190190
this.continuation = this.responseHeaders.get(HttpConstants.HttpHeaders.CONTINUATION);
191191

192192
fetchedItems = response.getQueryResponse(this.classT);
193+
this.items.clear();
194+
this.currentIndex = 0;
193195
this.items.addAll(fetchedItems);
194196

195197
if (fetchedItems != null && fetchedItems.size() > 0) {

0 commit comments

Comments
 (0)