Skip to content
This repository has been archived by the owner on Jan 13, 2018. It is now read-only.

Throw better exceptions when adding null LegacyBarActions #49

Open
Cheesebaron opened this issue Jul 17, 2013 · 0 comments
Open

Throw better exceptions when adding null LegacyBarActions #49

Cheesebaron opened this issue Jul 17, 2013 · 0 comments

Comments

@Cheesebaron
Copy link
Owner

Spent some time finding out why I got a null pointer exception in LegacyBar, and found out it was because of I was trying to add an Action to the LegacyBar which was null. Had we had a better exception in hand here, it would have been a bit easier to understand why the exception was thrown.

Maybe add an ArgumentException in the methods for adding Actions to the Bar.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant