Skip to content

Commit 603ce34

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 7121 b: refs/heads/tswast-patch-1 c: e0aaaba h: refs/heads/master i: 7119: c0f9547
1 parent 1b29f80 commit 603ce34

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: 4d2fe25b88f32abb9cc4c3d4bc01fbfde1221a79
60+
refs/heads/tswast-patch-1: e0aaaba871960a006fb82dc5972c015ea987c980
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/gcloud-java-datastore/src/main/java/com/google/gcloud/spi/DefaultDatastoreRpc.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,12 @@ private static boolean includesScheme(String url) {
8989
}
9090

9191
private static String removeScheme(String url) {
92-
if (url.startsWith("https://")) {
93-
return url.substring("https://".length());
94-
} else if (url.startsWith("http://")) {
95-
return url.substring("http://".length());
92+
if (url != null) {
93+
if (url.startsWith("https://")) {
94+
return url.substring("https://".length());
95+
} else if (url.startsWith("http://")) {
96+
return url.substring("http://".length());
97+
}
9698
}
9799
return url;
98100
}

branches/tswast-patch-1/gcloud-java-datastore/src/test/java/com/google/gcloud/datastore/LocalGcdHelper.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,7 @@ public static void main(String... args) throws IOException, InterruptedException
309309
public static boolean isActive(String projectId) {
310310
try {
311311
StringBuilder urlBuilder = new StringBuilder("http://localhost:").append(PORT);
312-
urlBuilder.append("/datastore/" + com.google.datastore.v1beta3.client.DatastoreFactory.VERSION
313-
+ "/projects/").append(projectId).append(":lookup");
312+
urlBuilder.append("/datastore/v1beta3/projects/").append(projectId).append(":lookup");
314313
URL url = new URL(urlBuilder.toString());
315314
try (BufferedReader reader =
316315
new BufferedReader(new InputStreamReader(url.openStream(), UTF_8))) {

0 commit comments

Comments
 (0)