Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Fix NRE in EditorActiveProfileChangeHandler #757

Merged
merged 1 commit into from
Jan 15, 2021

Conversation

FejZa
Copy link
Contributor

@FejZa FejZa commented Jan 14, 2021

XRTK - Mixed Reality Toolkit Pull Request

Overview

Fixes the NREs thrown in the build's test steps when no active profile was configured for the toolkit.
NREs were thrown in the handler if no active profile was set.

NREs were thrown in the handler if no active profile was set.
@FejZa FejZa added the Ready for review PR finished primary development, open for review label Jan 14, 2021
@FejZa FejZa requested a review from StephenHodgson January 14, 2021 23:48
@StephenHodgson StephenHodgson merged commit 4999eeb into development Jan 15, 2021
@StephenHodgson StephenHodgson deleted the fix/editor-apc-handler branch January 15, 2021 00:31
XRTK-Build-Bot pushed a commit that referenced this pull request Jan 15, 2021
NREs were thrown in the handler if no active profile was set.
@@ -18,7 +18,7 @@ static EditorActiveProfileChangeHandler()

private static void EditorApplication_hierarchyChanged()
{
if (!MixedRealityToolkit.Instance.IsNull())
if (!(MixedRealityToolkit.Instance.IsNull() || MixedRealityToolkit.Instance.ActiveProfile.IsNull()))
Copy link
Contributor

Choose a reason for hiding this comment

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

@FejZa this makes the xrtk auto-configure

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok thanks. I'll check it but not sure how this can be the cause of it?? Weird world.

Copy link
Contributor

Choose a reason for hiding this comment

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

See #760

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ready for review PR finished primary development, open for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants