Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit 6386e6f

Browse files
committed
Merge pull request #33 from aozarov/patch-1
Fix a bug that cause local test helper to fail when searching an emulator with an older cloud SDK
2 parents a02a695 + e4605fd commit 6386e6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/google/api/gax/testing/GCloudEmulatorRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private boolean isGCloudInstalled() {
8181
private boolean isEmulatorUpdateToDate()
8282
throws IOException, InterruptedException {
8383
String currentVersion = installedEmulatorVersion(versionPrefix);
84-
return currentVersion.compareTo(minVersion) >= 0;
84+
return currentVersion != null && currentVersion.compareTo(minVersion) >= 0;
8585
}
8686

8787
private String installedEmulatorVersion(String versionPrefix)

0 commit comments

Comments
 (0)