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 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 >
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments