From db2d61f0c499f1d1d8e61e4ffb6a7c4d7aec2357 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 6 Jun 2023 07:10:25 +0200 Subject: [PATCH] neon: Supress error when setting null active app --- packages/neon/neon/lib/src/blocs/apps.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/neon/neon/lib/src/blocs/apps.dart b/packages/neon/neon/lib/src/blocs/apps.dart index 223b8c3b..20a4a0ca 100644 --- a/packages/neon/neon/lib/src/blocs/apps.dart +++ b/packages/neon/neon/lib/src/blocs/apps.dart @@ -133,7 +133,7 @@ class AppsBloc extends InteractiveBloc implements AppsBlocEvents, AppsBlocStates } } else if (appID == 'notifications') { openNotifications.add(null); - } else { + } else if (appID != null) { throw Exception('App $appID not found'); } }