From 89e868ffdc3d3370c416c82d4a59fff521812be1 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sun, 16 Jun 2019 04:24:05 +0200 Subject: [PATCH] GitHostSetup: Abort on exception Otherwise we land up accessing the 'cloneUrl' of a null object and get another exception. --- lib/screens/githostsetup_autoconfigure.dart | 1 + pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/screens/githostsetup_autoconfigure.dart b/lib/screens/githostsetup_autoconfigure.dart index 6fa8c4b8..b9ee2c00 100644 --- a/lib/screens/githostsetup_autoconfigure.dart +++ b/lib/screens/githostsetup_autoconfigure.dart @@ -91,6 +91,7 @@ class GitHostSetupAutoConfigureState extends State { setState(() { errorMessage = widget.gitHostType.toString() + ": " + e.toString(); }); + return; } widget.onDone(repo.cloneUrl); }); diff --git a/pubspec.yaml b/pubspec.yaml index 1c4de4ac..f47489b8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: journal description: A Journaling App Built on top of Git -version: 1.1.7+10 +version: 1.1.8+10 dependencies: flutter: