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

Controller::curr() should return null instead of throwing an exception #11386

Open
GuySartorelli opened this issue Sep 17, 2024 · 0 comments
Open

Comments

@GuySartorelli
Copy link
Member

Controller::curr() currently throws an exception if there's no current controller. This means you have to use Controller::has_curr() any time you want to call curr() - when a null return value would do just as well.

Related issues

Acceptance Criteria

  • Controller::curr() returns null if there's no current controller (instead of throwing an exception).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant