Skip to content

Commit add621a

Browse files
authored
---
yaml --- r: 15043 b: refs/heads/autosynth-bigquerydatatransfer c: ca7054e h: refs/heads/master i: 15041: 2b64485 15039: 869992b
1 parent ab60440 commit add621a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • branches/autosynth-bigquerydatatransfer/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
@@ -124,7 +124,7 @@ refs/tags/v0.68.0: 9cc799fcf68c82ab431d425fefa58ef615ce8e5b
124124
refs/tags/v0.69.0: 78f67a29e8b9c46ba01de566a2eae0fd1c03edea
125125
refs/heads/autosynth-asset: cd8251de8c40e239ad24dcf9ed93ea2708a3eed5
126126
refs/heads/autosynth-automl: cced2f56bbef0499609073edbca6253e1df5e535
127-
refs/heads/autosynth-bigquerydatatransfer: 6d56b8cb0bef844a9adca34951b61cf5dce11907
127+
refs/heads/autosynth-bigquerydatatransfer: ca7054e8a887ff9f542a8bda6344b5111902f299
128128
refs/heads/autosynth-bigquerystorage: 99aee05df348f39d98b6fb23c292006f1d2a6c28
129129
refs/heads/autosynth-bigtable: fa0d1de9e264d7ecac8a3abc3de7a8364cfaf427
130130
refs/heads/autosynth-bigtable-admin: 6379a2bc712f2736c83de0e009b4d26da4fa82ca

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