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 for crash on load w/ experiment complete #408

Merged
merged 1 commit into from
Jan 6, 2023
Merged

Conversation

bboudaoud-nv
Copy link
Collaborator

After trial-level configuration the playerCamera was not initialized in FPSci when loading a completed experiment. This caused null pointer exceptions when running oneFrame(). This branch assigns the playerCamera and adds null checking to avoid these exceptions while still displaying the allSessionsCompleteFeedback message.

@bboudaoud-nv bboudaoud-nv self-assigned this Jan 5, 2023
@bboudaoud-nv bboudaoud-nv requested a review from jspjutNV January 5, 2023 17:51
@bboudaoud-nv bboudaoud-nv added the bug Something isn't working label Jan 5, 2023
@jspjutNV jspjutNV added this to the Later Release (2023) milestone Jan 5, 2023
@jspjutNV
Copy link
Contributor

jspjutNV commented Jan 5, 2023

I assume this PR is still in draft state just to be sure it's the type of solution to the problem that we really want. If so, I'll start looking at it.

@bboudaoud-nv
Copy link
Collaborator Author

Yeah, exactly. I don't think it will create any negative impacts but certainly worth deciding if this is the behavior we want.

Copy link
Contributor

@jspjutNV jspjutNV left a comment

Choose a reason for hiding this comment

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

Looks good and passes all tests. Nice fix!

@jspjutNV jspjutNV marked this pull request as ready for review January 6, 2023 20:44
@jspjutNV jspjutNV merged commit cf613b9 into master Jan 6, 2023
@jspjutNV jspjutNV deleted the OpenAfterComplete branch January 6, 2023 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants