Skip to content

Delete annoying "No LeapProvider" warning#998

Merged
Amarcolina merged 2 commits intodevelopfrom
remove-null-static-provider-spam
Apr 9, 2018
Merged

Delete annoying "No LeapProvider" warning#998
Amarcolina merged 2 commits intodevelopfrom
remove-null-static-provider-spam

Conversation

@vabrador
Copy link
Copy Markdown
Contributor

@vabrador vabrador commented Apr 9, 2018

I have found this little set of lines to be incredibly annoying.

Overall motivation: Often, a project only sometimes supports Leap, and sometimes just doesn't have a static Provider available. I think this should just be fine, and static accessors can search the scene and return null, and errbody will be fine because null reference exceptions are a normal part of life.

Alternative:

  • Have the error message print by default, but allow a LeapPreferences checkbox for disabling it. I'm not sure this is worth the extra effort.

Thoughts?

@vabrador vabrador added the DevX label Apr 9, 2018
@vabrador vabrador added this to the Core v4.4 milestone Apr 9, 2018
@vabrador vabrador self-assigned this Apr 9, 2018
@vabrador vabrador requested a review from Amarcolina April 9, 2018 23:38
Copy link
Copy Markdown
Contributor

@Amarcolina Amarcolina left a comment

Choose a reason for hiding this comment

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

I'm 100% onboard with these changes.

@Amarcolina Amarcolina merged commit aad9a29 into develop Apr 9, 2018
@Amarcolina Amarcolina deleted the remove-null-static-provider-spam branch April 9, 2018 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants