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 9d2d084 commit c16304bCopy full SHA for c16304b
sqlite3/lib/src/ffi/bindings.dart
@@ -242,7 +242,8 @@ final class _RegisteredVfs {
242
static int _xOpen(Pointer<sqlite3_vfs> vfsPtr, Pointer<Char> zName,
243
Pointer<sqlite3_file> file, int flags, Pointer<Int> pOutFlags) {
244
return _runVfs(vfsPtr, (vfs) {
245
- final fileName = Sqlite3Filename(zName.cast<sqlite3_char>().readString());
+ final fileName = Sqlite3Filename(
246
+ zName.isNullPointer ? null : zName.cast<sqlite3_char>().readString());
247
final dartFilePtr = file.cast<_DartFile>();
248
249
final (file: dartFile, :outFlags) = vfs.xOpen(fileName, flags);
0 commit comments