Commit 81a7fb48 authored by Jakob Andersen's avatar Jakob Andersen Committed by GitHub

Catch file system exception while looking for Android Studio on macOS. (#8457)

Fixes #8395.
parent 03249231
......@@ -139,6 +139,7 @@ class AndroidStudio implements Comparable<AndroidStudio> {
void _checkForStudio(String path) {
if (!fs.isDirectorySync(path))
return;
try {
Iterable<Directory> directories = fs
.directory(path)
.listSync()
......@@ -150,6 +151,9 @@ class AndroidStudio implements Comparable<AndroidStudio> {
_checkForStudio(directory.path);
}
}
} catch (e) {
printTrace('Exception while looking for Android Studio: $e');
}
}
_checkForStudio('/Applications');
......
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