Skip to content

Commit ec24749

Browse files
authored
---
yaml --- r: 13985 b: refs/heads/autosynth-container c: ca7054e h: refs/heads/master i: 13983: 862f303
1 parent 5c047cc commit ec24749

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
@@ -113,7 +113,7 @@ refs/tags/v0.65.0: 10939381ffe0b8da32db4fe3087c86e3aa7f3e55
113113
refs/tags/v0.66.0: ed6a3f57cbdaa20339a1995f7d7d53b172a5b8ef
114114
refs/tags/v0.67.0: 30b56f02092efc6f3c3667650ea8b8825003e0b7
115115
refs/heads/autosynth-compute: 8e86445e504cea6f99b9fb237bfd7f0e5ef8b3ce
116-
refs/heads/autosynth-container: 6d56b8cb0bef844a9adca34951b61cf5dce11907
116+
refs/heads/autosynth-container: ca7054e8a887ff9f542a8bda6344b5111902f299
117117
refs/heads/autosynth-dataproc: bc74a8841bc1693d7945d991d15979df550b1fd1
118118
refs/heads/autosynth-monitoring: 120f508e0065f4ce39cf0e6a69a08138773f2cfb
119119
refs/heads/autosynth-pubsub: ed3340e32d13bb1a42ca4431cb1ad9bdaf550aa4

branches/autosynth-container/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)