Commit a667bf93 authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Gracefully handle !isValid in AndroidStudio.gradleExecutable (#9893)

Fixes #9866
parent f44ba8b9
......@@ -100,8 +100,9 @@ class AndroidStudio implements Comparable<AndroidStudio> {
String get gradlePath => _gradlePath;
String get gradleExecutable => fs.path
.join(_gradlePath, 'bin', platform.isWindows ? 'gradle.bat' : 'gradle');
String get gradleExecutable => isValid
? fs.path.join(_gradlePath, 'bin', platform.isWindows ? 'gradle.bat' : 'gradle')
: null;
String get javaPath => _javaPath;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment