We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e90bb3d commit 38224ceCopy full SHA for 38224ce
2 files changed
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: 6d56b8cb0bef844a9adca34951b61cf5dce11907
+refs/heads/master: ca7054e8a887ff9f542a8bda6344b5111902f299
3
refs/heads/gh-pages: ab77ca69261397678c6addc69a7f9dd7c17c7b08
4
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
5
refs/tags/v0.0.10: 207ebd2a3472fddee69fe1298eb90429e3306efd
trunk/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/MetadataConfig.java
@@ -43,7 +43,7 @@ public static String getProjectId() {
43
44
public static String getZone() {
45
String zoneId = getAttribute("instance/zone");
46
- if (zoneId.contains("/")) {
+ if (zoneId != null && zoneId.contains("/")) {
47
return zoneId.substring(zoneId.lastIndexOf('/') + 1);
48
}
49
return zoneId;
0 commit comments