Skip to content

Commit 86e4116

Browse files
authored
---
yaml --- r: 13047 b: refs/heads/autosynth-securitycenter c: ca7054e h: refs/heads/master i: 13045: 8618f01 13043: b8d774a 13039: 583d3a0
1 parent 41d4070 commit 86e4116

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • branches/autosynth-securitycenter/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ refs/heads/autosynth-language: 8972866b016473559702424205ce5569de47b34d
139139
refs/heads/autosynth-os-login: daa910328b954bbe87068f684a3088ed910f1ddf
140140
refs/heads/autosynth-redis: 4c68cb0fbc599124e717ab3f24bd8a8a5d085ca9
141141
refs/heads/autosynth-scheduler: 2f0fe714a8541dc72f88b45bddd8748e5f21cf29
142-
refs/heads/autosynth-securitycenter: 6d56b8cb0bef844a9adca34951b61cf5dce11907
142+
refs/heads/autosynth-securitycenter: ca7054e8a887ff9f542a8bda6344b5111902f299
143143
refs/heads/autosynth-spanner: 1804eb46dd34a05b47163758d376a7fac49188f1
144144
refs/heads/autosynth-speech: 631df42a628621fe42eb4974c9eb725b2fe8e473
145145
refs/heads/autosynth-tasks: afc9f4da54964dea5e7f3a9b164db282fc35db5c

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