We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 195a20d commit 138b05aCopy full SHA for 138b05a
lib/app/modules/home/controllers/home_controller.dart
@@ -232,14 +232,21 @@ class HomeController extends GetxController {
232
String profileName = await storage.readProfile();
233
selectedProfile.value = profileName;
234
ProfileModel? p = await IsarDb.getProfile(profileName);
235
- profileModel.value = p!;
+ if (p != null)
236
+ {
237
+ profileModel.value = p!;
238
+ }
239
+
240
}
241
242
void writeProfileName(String name) async {
243
await storage.writeProfile(name);
244
selectedProfile.value = name;
245
ProfileModel? p = await IsarDb.getProfile(name);
246
247
248
249
250
251
252
@override
0 commit comments