Skip to content

[Android] Crash when trying to get more assets and there are no more of them #20

@facuacostag

Description

@facuacostag

Hi, when you get the assets on Android and reach the "end" of them, meaning that there are no more assets, the cursor is returning undefined instead of an empty array as it happens on iOS. This causes the app to crash if not handle properly so I think that the response should be the same as in iOS when there are no more assets.

• Android
First fetch returns 2 assets, which are the current assets in the device. Second call to the library causes a crash because the response is undefined.
screen shot 2018-05-24 at 16 05 31

• iOS
First fetch returns 1 asset, the only one available in the device. Second call returns empty array, so the app doesn't crash and everything works fine.
screen shot 2018-05-24 at 16 07 04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions