Skip to content

Commit

Permalink
Merge pull request #834 from volosied/reintroduce-MYFACES-4495
Browse files Browse the repository at this point in the history
[2.3.x] Add MYFACES-4495: Throw NPE when necessary back in
  • Loading branch information
volosied authored Jan 28, 2025
2 parents 8cd649f + 94bf9a2 commit 381e225
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ public final void addELContextListener(final ELContextListener listener)
public void publishEvent(FacesContext facesContext, Class<? extends SystemEvent> systemEventClass,
Class<?> sourceBaseType, Object source)
{
checkNull(facesContext, "facesContext");
checkNull(systemEventClass, "systemEventClass");
checkNull(source, "source");

Expand Down Expand Up @@ -646,6 +647,7 @@ public void publishEvent(FacesContext facesContext, Class<? extends SystemEvent>
@Override
public void publishEvent(FacesContext facesContext, Class<? extends SystemEvent> systemEventClass, Object source)
{
checkNull(source, "source");
publishEvent(facesContext, systemEventClass, source.getClass(), source);
}

Expand Down

0 comments on commit 381e225

Please sign in to comment.