Skip to content

Commit 603efd8

Browse files
authored
---
yaml --- r: 16355 b: refs/heads/autosynth-iot c: ca7054e h: refs/heads/master i: 16353: e1535ff 16351: 8b49500
1 parent eb13a75 commit 603efd8

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
@@ -133,7 +133,7 @@ refs/heads/autosynth-datastore: 9acd400b484d6691a080c9152a331d88d24fefc1
133133
refs/heads/autosynth-dialogflow: d7477419376eac9b6dcc7dbcede581152527351d
134134
refs/heads/autosynth-errorreporting: 9891e73a56af7c097829ca7a521b0e862ba6af30
135135
refs/heads/autosynth-firestore: ddb29f8ee445a938fc40be8227dea87b3f508ab3
136-
refs/heads/autosynth-iot: 6d56b8cb0bef844a9adca34951b61cf5dce11907
136+
refs/heads/autosynth-iot: ca7054e8a887ff9f542a8bda6344b5111902f299
137137
refs/heads/autosynth-kms: dcc6e15d68759010c8735cc868135bd7e6c1cc5f
138138
refs/heads/autosynth-language: 8972866b016473559702424205ce5569de47b34d
139139
refs/heads/autosynth-os-login: daa910328b954bbe87068f684a3088ed910f1ddf

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