GitTransferProgress: parsing checks

This commit is contained in:
Vishesh Handa
2021-07-27 10:58:22 +02:00
parent 5f1e4cb8ea
commit 4811259940

View File

@ -25,6 +25,10 @@ class GitTransferProgress {
var parts = str.split(' ');
print('GitTransferProgress: #$str#');
if (parts.length < 7) {
return null;
}
var tp = GitTransferProgress();
tp.totalObjects = int.parse(parts[0]);
tp.indexedObjects = int.parse(parts[1]);