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: Avoid presentation conversion causing a crash #19600

Merged
merged 1 commit into from Feb 14, 2024

Conversation

antobinary
Copy link
Member

@antobinary antobinary commented Feb 8, 2024

What does this PR do?

Checks if a presentation object is undefined before trying to set its isCurrent value. Addresses a rare crash.

Closes Issue(s)

Mitigates #19601 but does not fully close it.

Motivation

More

This patch avoids the crash but I am not quite sure of the exact reason why this object is undefined in some cases.
Also, it seems in some cases the list of presentations in the dialog is missing one of the presentations (with this patch). On re-opening of the dialog it seems fine. Let's see if others perhaps have better ideas about patching this.

In order to debug this and try the fix I resorted to spinning up a temporary 2.7.4 server with a dev environment. I used the ./deploy_to_usr_share.sh script in bbb-html5 to deploy changes as I could not hit the issue while in dev mode. I am happy to assist with the testing or further investigation work.

@antobinary antobinary added this to the Release 2.7 milestone Feb 8, 2024
Copy link

sonarcloud bot commented Feb 8, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

github-actions bot commented Feb 8, 2024

Automated tests Summary

All the CI tests have passed!

@antobinary antobinary requested review from ramonlsouza and GuiLeme and removed request for ramonlsouza February 8, 2024 01:24
Copy link
Collaborator

@GuiLeme GuiLeme left a comment

Choose a reason for hiding this comment

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

LGTM!

@antobinary antobinary merged commit 95c945f into v2.7.x-release Feb 14, 2024
25 checks passed
@antobinary antobinary deleted the crash-pres-conversion branch February 23, 2024 21:21
@antobinary antobinary changed the title fix: Aviod presentation conversion causing a crash fix: Avoid presentation conversion causing a crash Mar 9, 2024
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.

None yet

2 participants