From 481125994072c0879a4d211490b9fab36ee2d89a Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Tue, 27 Jul 2021 10:58:22 +0200 Subject: [PATCH] GitTransferProgress: parsing checks --- lib/setup/clone.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/setup/clone.dart b/lib/setup/clone.dart index 2f3dd9a0..4b716da6 100644 --- a/lib/setup/clone.dart +++ b/lib/setup/clone.dart @@ -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]);