diff --git a/lib/src/screens/send/lightning_send_page.dart b/lib/src/screens/send/lightning_send_page.dart index f400c7abf..6bb0d765e 100644 --- a/lib/src/screens/send/lightning_send_page.dart +++ b/lib/src/screens/send/lightning_send_page.dart @@ -226,7 +226,13 @@ class LightningSendPage extends BasePage { final sdk = await BreezSDK(); - final InputType inputType = await sdk.parseInput(input: bolt11Controller.text); + late InputType inputType; + + try { + inputType = await sdk.parseInput(input: bolt11Controller.text); + } catch (_) { + throw Exception("Unknown input type"); + } if (inputType is InputType_Bolt11) { final bolt11 = await sdk.parseInvoice(bolt11Controller.text);