Skip to content

Commit 38224ce

Browse files
authored
---
yaml --- r: 12607 b: refs/heads/master c: ca7054e h: refs/heads/master i: 12605: 8835c10 12603: fd15d1c 12599: bd2077d 12591: a157fba 12575: 478a810 12543: 5414ccd
1 parent e90bb3d commit 38224ce

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 6d56b8cb0bef844a9adca34951b61cf5dce11907
2+
refs/heads/master: ca7054e8a887ff9f542a8bda6344b5111902f299
33
refs/heads/gh-pages: ab77ca69261397678c6addc69a7f9dd7c17c7b08
44
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
55
refs/tags/v0.0.10: 207ebd2a3472fddee69fe1298eb90429e3306efd

trunk/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/MetadataConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static String getProjectId() {
4343

4444
public static String getZone() {
4545
String zoneId = getAttribute("instance/zone");
46-
if (zoneId.contains("/")) {
46+
if (zoneId != null && zoneId.contains("/")) {
4747
return zoneId.substring(zoneId.lastIndexOf('/') + 1);
4848
}
4949
return zoneId;

0 commit comments

Comments
 (0)