mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Don't crash if we fail to get the flutter or engine revision (#6332)
This commit is contained in:
parent
93d757c3e0
commit
cedbfd4896
@ -107,5 +107,7 @@ String _runSync(String executable, List<String> arguments, String cwd) {
|
||||
}
|
||||
|
||||
String _shortGitRevision(String revision) {
|
||||
if (revision == null)
|
||||
return '';
|
||||
return revision.length > 10 ? revision.substring(0, 10) : revision;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user