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 fec269b commit e3ece89Copy full SHA for e3ece89
lib/Storage/database_management.dart
@@ -169,7 +169,7 @@ class DatabaseManagement {
169
List<Map> result = await db.rawQuery(
170
'SELECT COUNT(*) as count FROM $nameTable WHERE id = ?', [visitorId]);
171
172
- int count = result.first['count'] ?? 0;
+ int count = result.isNotEmpty ? (result.first['count'] ?? 0) : 0;
173
return count > 0;
174
} on Exception catch (e) {
175
Flagship.logger(Level.EXCEPTIONS,
0 commit comments