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: FilesSyncHelper: Shuffle array after null check, else NullPointerException is thrown #14180

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Bensikrac
Copy link
Contributor

  • Tests written, or not not needed

This again fixes: #12964
change should be obvious, first shuffling a null array and then checking is not a good idea.

I also now added some tests, that only test for the null condition, so this issue hopefully does not arise in the future

Signed-off-by: Benedek Major <benedek@major.onl>
Signed-off-by: Benedek Major <benedek@major.onl>
Signed-off-by: Benedek Major <benedek@major.onl>
Signed-off-by: Benedek Major <benedek@major.onl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏗️ In progress
Development

Successfully merging this pull request may close these issues.

3 participants