Skip to content

Conversation

@solracsf
Copy link
Member

@solracsf solracsf commented May 8, 2023

Summary

Check if version entity is not null before delete. This variable is being set in the array_filter() function, but it is possible that it remains empty if the function doesn't find any version that matches the conditions.

Checklist

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
@solracsf
Copy link
Member Author

solracsf commented May 8, 2023

/backport to stable26

This was referenced May 9, 2023
Copy link
Contributor

@artonge artonge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈

@artonge artonge requested review from a team, ArtificialOwl, come-nc, icewind1991 and nfebe and removed request for a team May 9, 2023 09:55
@skjnldsv skjnldsv merged commit 416f632 into master May 9, 2023
@skjnldsv skjnldsv deleted the versionEntityCheck branch May 9, 2023 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: TypeError: OCP\AppFramework\Db\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\AppFramework\Db\Entity, null given

5 participants