File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed
src/com/microsoft/azure/documentdb Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 3
3
<modelVersion >4.0.0</modelVersion >
4
4
<groupId >com.microsoft.azure</groupId >
5
5
<artifactId >azure-documentdb</artifactId >
6
- <version >0.9.3 </version >
6
+ <version >0.9.4 </version >
7
7
<name >${project.groupId} :${project.artifactId} </name >
8
8
<description >Java SDK for Microsoft Azure DocumentDB</description >
9
9
<url >http://azure.microsoft.com/en-us/services/documentdb/</url >
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public long getRetryAfterInMilliseconds() {
68
68
String header = this .responseHeaders .get (
69
69
HttpConstants .HttpHeaders .RETRY_AFTER_IN_MILLISECONDS );
70
70
71
- if (!header .isEmpty ()) {
71
+ if (header != null && !header .isEmpty ()) {
72
72
long retryIntervalInMilliseconds = Long .valueOf (header );
73
73
return retryIntervalInMilliseconds ;
74
74
}
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ public static class Versions {
153
153
154
154
public static String CURRENT_VERSION = "2014-08-21" ;
155
155
156
- public static String USER_AGENT = "documentdb-java-sdk-0.9.3 " ;
156
+ public static String USER_AGENT = "documentdb-java-sdk-0.9.4 " ;
157
157
}
158
158
159
159
public static class StatusCodes {
Original file line number Diff line number Diff line change @@ -190,6 +190,8 @@ public List<T> fetchNextBlock()
190
190
this .continuation = this .responseHeaders .get (HttpConstants .HttpHeaders .CONTINUATION );
191
191
192
192
fetchedItems = response .getQueryResponse (this .classT );
193
+ this .items .clear ();
194
+ this .currentIndex = 0 ;
193
195
this .items .addAll (fetchedItems );
194
196
195
197
if (fetchedItems != null && fetchedItems .size () > 0 ) {
You can’t perform that action at this time.
0 commit comments