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

handle case of no MotionControllerVisualizer singleton #2072

Merged
merged 3 commits into from
May 10, 2018
Merged

handle case of no MotionControllerVisualizer singleton #2072

merged 3 commits into from
May 10, 2018

Conversation

david-c-kline
Copy link

Overview

Eliminates NullReferenceException when using the Solver System if the MotionControllers prefab is not in the scene (typically attached to the camera)

Changes

@david-c-kline david-c-kline added Bug Platform - HoloLens - First Gen Issues specific to Microsoft HoloLens labels May 10, 2018
}

/// <summary>
/// Base Awake method that sets the Singleton's unique instance.
Copy link
Contributor

Choose a reason for hiding this comment

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

Weird spacing

Copy link
Author

Choose a reason for hiding this comment

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

that IS weird.... i'll make sure I have the right tabs/spaces setting

Copy link
Author

Choose a reason for hiding this comment

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

git it not telling me anything changed after i forced new tabbing... MIGHT just be a diff view issue

Copy link
Author

Choose a reason for hiding this comment

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

found it.... the issue was in a pre-existing comment it seems

/// <returns>The value of the Singleton's IsInitialized property</returns>
public static bool ConfirmInitialized()
{
T access = Instance;
Copy link
Contributor

Choose a reason for hiding this comment

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

This wasn't in the master branch already?

Any other singleton changes we didn't have?

Copy link
Author

Choose a reason for hiding this comment

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

it wasn't. i will look and open a PR if i see any more missing code

Copy link
Contributor

Choose a reason for hiding this comment

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

I thought the same thing!

@david-c-kline david-c-kline merged commit 6a8760f into microsoft:may18_dev May 10, 2018
@david-c-kline david-c-kline deleted the nullRef2053 branch May 11, 2018 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform - HoloLens - First Gen Issues specific to Microsoft HoloLens
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants