mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-25 08:12:19 +08:00
GitTransferProgress: parsing checks
This commit is contained in:
@ -25,6 +25,10 @@ class GitTransferProgress {
|
|||||||
var parts = str.split(' ');
|
var parts = str.split(' ');
|
||||||
print('GitTransferProgress: #$str#');
|
print('GitTransferProgress: #$str#');
|
||||||
|
|
||||||
|
if (parts.length < 7) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
var tp = GitTransferProgress();
|
var tp = GitTransferProgress();
|
||||||
tp.totalObjects = int.parse(parts[0]);
|
tp.totalObjects = int.parse(parts[0]);
|
||||||
tp.indexedObjects = int.parse(parts[1]);
|
tp.indexedObjects = int.parse(parts[1]);
|
||||||
|
Reference in New Issue
Block a user