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

MYFACES-4495: Throw NPE when necessary #377

Merged
merged 1 commit into from Nov 9, 2022

Conversation

pnicolucci
Copy link
Contributor

@@ -51,12 +52,17 @@

public void publishEvent(FacesContext facesContext, Class<? extends SystemEvent> systemEventClass, Object source)
{
Assert.notNull(source, "source");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doing the assert here as well to avoid a non descript NPE when doing a source.getClass()

@tandraschko
Copy link
Member

+1

@pnicolucci pnicolucci merged commit 8fa340d into apache:main Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants