From fef0120732474ee5083d858ea5ce05afcc294ee2 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sat, 27 Sep 2025 02:46:27 -0400 Subject: [PATCH] Minor form validation fix --- lib/app_sources/github.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/app_sources/github.dart b/lib/app_sources/github.dart index b6d244e..f9c53d3 100644 --- a/lib/app_sources/github.dart +++ b/lib/app_sources/github.dart @@ -53,11 +53,12 @@ class GitHub extends AppSource { additionalValidators: [ (value) { try { - if (Uri.parse( - 'https://${value}/api.github.com', - ).scheme.isNotEmpty) { + if (value != null && Uri.parse(value).scheme.isNotEmpty) { throw true; } + if (value != null) { + Uri.parse('https://${value}/api.github.com'); + } } catch (e) { return tr('invalidInput'); }