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

This commit is contained in:
Todd Volkert 2016-10-14 15:43:44 -07:00 committed by GitHub
parent 93d757c3e0
commit cedbfd4896

View File

@ -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;
}