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 NullReferenceException when opening PointerProfile without main camera in scene #10715

Merged
merged 2 commits into from
Jul 7, 2022

Conversation

keveleigh
Copy link
Contributor

Overview

Added a handful of null checks for CameraCache.Main and updated some paths to use existing helper functions. This will help reduce the likelihood of hitting null refs when a camera isn't properly tagged as "main".

Changes

@keveleigh keveleigh added the MRTK2 label Jul 7, 2022
@keveleigh keveleigh self-assigned this Jul 7, 2022
@keveleigh keveleigh enabled auto-merge (squash) July 7, 2022 19:42
@keveleigh keveleigh merged commit 6223850 into microsoft:main Jul 7, 2022
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.

NullReferenceException when opening PointerProfile without main camera in scene
2 participants