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

Don't crash if we fail to get the flutter or engine revision (#6332)

parent 93d757c3
......@@ -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;
}
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