Skip to content

Wrap write call with try/catch in processFile() #184595

Description

@jesswrd

File operations like reads and writes are inherently racy/unsafe. All downstream callers of this function are/should wrap the function call in a try/catch in the event the write is unsuccessful.

Specifically this line here should return a bool indicating success/failure and where the function actually writes here should be wrapped in a try/catch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: tech-debtTechnical debt, code quality, testing, etc.team-androidOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions