Skip to content

Commit 06b73bf

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 4215 b: refs/heads/gcs-nio c: e0aaaba h: refs/heads/master i: 4213: c502ee1 4211: 9b7d265 4207: ce3c0bb
1 parent f213496 commit 06b73bf

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
@@ -11,7 +11,7 @@ refs/tags/v0.0.12: 2fd8066e891fb3dfea69b65f6bf6461db79342b9
1111
refs/heads/compute-alpha: 969cba2627f1d53d352cc4a5ffe0879dacf65e6c
1212
refs/heads/dns-alpha: 2f90e7e338349287ace33375896907af0f032ca1
1313
refs/heads/dns-alpha-batch: 17442b07867021b85d0452f5f3eda29a3413288f
14-
refs/heads/gcs-nio: 4d2fe25b88f32abb9cc4c3d4bc01fbfde1221a79
14+
refs/heads/gcs-nio: e0aaaba871960a006fb82dc5972c015ea987c980
1515
refs/heads/logging-alpha: db5312bffa7fccac194f6a7feb8cc3066de16aff
1616
refs/tags/v0.1.0: a615317f7424ed58621b1f65d5c4d8cbbe8a6ed8
1717
refs/tags/v0.1.1: 7a7f6985fe465e9dd6a075af55493f42b4933be0

branches/gcs-nio/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/gcs-nio/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)