Skip to content

App crash when File class receive an empty string #60331

@JeremyDufeux

Description

@JeremyDufeux

I've just found an issue with the File class, passing an empty string to it causes the app to crash unexpectedly without throwing any error:

try {
  await File('').exists();
} catch (e) {
    e.toString();
}

Dart version: 3.7.0
Futter version: 3.29.0
Platform: Windows 11

Let me know if you need other information to reproduce the issue

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-iotriagedIssue has been triaged by sub team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions