Skip to content

Commit 481f226

Browse files
authored
---
yaml --- r: 15385 b: refs/heads/autosynth-containeranalysis c: ca7054e h: refs/heads/master i: 15383: 864dd88
1 parent 583f288 commit 481f226

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • branches/autosynth-containeranalysis/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
@@ -128,7 +128,7 @@ refs/heads/autosynth-bigquerydatatransfer: a6667617707608b1dbfb02d59c22b5152f208
128128
refs/heads/autosynth-bigquerystorage: 14ab055598b943ae3f33f484e9fb1653355d08e7
129129
refs/heads/autosynth-bigtable: 2fbcb15847e0e89e79d6dc07420e28d7dfcea894
130130
refs/heads/autosynth-bigtable-admin: 6379a2bc712f2736c83de0e009b4d26da4fa82ca
131-
refs/heads/autosynth-containeranalysis: 6d56b8cb0bef844a9adca34951b61cf5dce11907
131+
refs/heads/autosynth-containeranalysis: ca7054e8a887ff9f542a8bda6344b5111902f299
132132
refs/heads/autosynth-datastore: af1fb76aa3eee02fe6f31f8fa1c72a4f048d149b
133133
refs/heads/autosynth-dialogflow: ebdd13c445b9674ff9ad4601f78d7ecd6f9c3660
134134
refs/heads/autosynth-errorreporting: 3d0566d6bebcc187f148bbed463b5a8e75b1edf6

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