Skip to content

Platform.executable is null #48427

@knopp

Description

@knopp

resolvedExecutable works as expected, but calling Platform.executable fails with exception

Unhandled Exception: type 'Null' is not a subtype of type 'String'
#0      _Platform.executable (dart:io/platform_impl.dart:36:30)
#1      _Platform.executable (dart:io/platform_impl.dart)
#2      Platform.executable (dart:io/platform.dart:177:45)

If null is indeed expected value perhaps the API should be changed to String?.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-io

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions