Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash when itemInfo is nil #95

Merged

Conversation

Jamesking56
Copy link
Contributor

@Jamesking56 Jamesking56 commented Jun 11, 2024

When itemInfo is nil, a crash can occur when trying to set the created index.

This code block is not necessary, since a little bit further down, we are setting created anyway and this is after itemInfo is verified not to be nil:

itemInfo['created'] = created or time

@MonkeyWhisper MonkeyWhisper merged commit af3ba0d into Project-Sloth:main Jun 12, 2024
@Jamesking56 Jamesking56 deleted the fix-crash-when-itemInfo-is-nil branch June 19, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants