flutter_sqlcipher icon indicating copy to clipboard operation
flutter_sqlcipher copied to clipboard

crash on an exception when wrong database password provided

Open ramsestom opened this issue 5 years ago • 0 comments

When trying to open a database with wrong password, the app crash on the following exception:

Exception has occurred. SqfliteDatabaseException (DatabaseException(file is not a database: , while compiling: select count(*) from sqlite_master;))

that happen at the rethrow; at line 110 in factory_mixin.dart

This happen even when sqflite.openDatabase() is called from inside a try block so I guess the error is not correctly handled all the way back to the openDatabase function.

ramsestom avatar Apr 14 '20 21:04 ramsestom