Skip to content

Commit

Permalink
Merge pull request googleapis#33 from aozarov/patch-1
Browse files Browse the repository at this point in the history
Fix a bug that cause local test helper to fail when searching an emulator with an older cloud SDK
  • Loading branch information
shinfan committed Mar 28, 2016
2 parents a02a695 + e4605fd commit 6386e6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private boolean isGCloudInstalled() {
private boolean isEmulatorUpdateToDate()
throws IOException, InterruptedException {
String currentVersion = installedEmulatorVersion(versionPrefix);
return currentVersion.compareTo(minVersion) >= 0;
return currentVersion != null && currentVersion.compareTo(minVersion) >= 0;
}

private String installedEmulatorVersion(String versionPrefix)
Expand Down

0 comments on commit 6386e6f

Please sign in to comment.