mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[GH-ISSUE #301] cursors in rspotify_model::page::CursorBasedPage can be None #91
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#91
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aome510 on GitHub (Mar 6, 2022).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/301
Describe the bug
The
cursorsfield in the cursor-based page object can be null if the page returned by the request is empty. Assuming it is non-nullable makes deserializing the response object panic.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Found the
cursorsfield in the response to be null.@marioortizmanero commented on GitHub (Mar 7, 2022):
Can confirm that I can reproduce this: