Skip to content

Commit 662efa8

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 3777 b: refs/heads/pubsub-alpha c: e0aaaba h: refs/heads/master i: 3775: 862e1eb
1 parent 3622c7d commit 662efa8

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 36a62ef856d199f8efd09501b5ba65c422c01f23
33
refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44
refs/heads/gh-pages: 7406918e071dd2c5677a638ae2a06e7592b6542c
5-
refs/heads/pubsub-alpha: 4d2fe25b88f32abb9cc4c3d4bc01fbfde1221a79
5+
refs/heads/pubsub-alpha: e0aaaba871960a006fb82dc5972c015ea987c980
66
refs/heads/update-datastore: 47aae517c2cb33f1dccd909adaced73ec9d0f4df
77
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
88
refs/tags/v0.0.10: 207ebd2a3472fddee69fe1298eb90429e3306efd

branches/pubsub-alpha/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/pubsub-alpha/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)