Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Fix crash when itemInfo is nil#95

Merged
MonkeyWhisper merged 1 commit intoProject-Sloth:mainfrom
Jamesking56:fix-crash-when-itemInfo-is-nil
Jun 12, 2024
Merged

Fix crash when itemInfo is nil#95
MonkeyWhisper merged 1 commit intoProject-Sloth:mainfrom
Jamesking56:fix-crash-when-itemInfo-is-nil

Conversation

@Jamesking56
Copy link
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants