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 74c942c commit a721e39Copy full SHA for a721e39
lib/app/v3/db/task_database.dart
@@ -86,9 +86,13 @@ class TaskDatabase {
86
List<TaskForC> a = await Future.wait(
87
maps.map((mapItem) => getObjectForTask(mapItem)).toList(),
88
);
89
- debugPrint("Database fetch ${maps.last}");
90
- for (int i = 0; i < maps.length; i++) {
91
- debugPrint("Database fetch ${maps[i]}");
+ if (maps.isNotEmpty) {
+ debugPrint("Database fetch ${maps.last}");
+ for (int i = 0; i < maps.length; i++) {
92
+ debugPrint("Database fetch ${maps[i]}");
93
+ }
94
+ } else {
95
+ debugPrint("Database fetch: No tasks found");
96
}
97
debugPrint('Tasks from db');
98
debugPrint(a.toString());
0 commit comments