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

Fix a bug that cause local test helper to fail when searching an emulator with an older cloud SDK #33

Merged
merged 1 commit into from
Mar 28, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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