Skip to content

[image_picker] NPE On Permission error. #108334

@ajzome

Description

@ajzome

Steps to Reproduce

I have thus far been unable to reproduce the error locally, however I do occasionally see reports from users. The problem seems to come from an error during the permissions check. Based on the stack trace I have located the bug in ImagePickerCache::saveResult (ImagePickerCache.java). After creating the set it does an addAll of paths. However paths is nullable but addAll does not handle null parameters. Null is passed in via ImagePickerDelegate::finishWithError which happens in a few spots

Expected results:

No NPE

Actual results:

An NPE during various errors in the ImagePickerDelegate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work lista: productionIssues experienced in live production appsc: crashStack traces logged to the consolep: image_pickerThe Image Picker plugin.packageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions