Skip to content

Fix NullReferenceException when opening PointerProfile without main camera in scene#10715

Merged
keveleigh merged 2 commits intomicrosoft:mainfrom
keveleigh:fix-more-null-refs
Jul 7, 2022
Merged

Fix NullReferenceException when opening PointerProfile without main camera in scene#10715
keveleigh merged 2 commits intomicrosoft:mainfrom
keveleigh:fix-more-null-refs

Conversation

@keveleigh
Copy link
Copy Markdown
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 requested a review from david-c-kline as a code owner July 7, 2022 19:42
@keveleigh keveleigh self-assigned this Jul 7, 2022
@keveleigh keveleigh enabled auto-merge (squash) July 7, 2022 19:42
@keveleigh keveleigh force-pushed the fix-more-null-refs branch from da14cf4 to 487a317 Compare July 7, 2022 19:45
@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