You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by me...@apache.org on 2022/11/15 14:58:55 UTC
[myfaces] branch 2.3.x updated: MYFACES-4495: Throw NPE when necessary (#382)
This is an automated email from the ASF dual-hosted git repository.
melloware pushed a commit to branch 2.3.x
in repository https://gitbox.apache.org/repos/asf/myfaces.git
The following commit(s) were added to refs/heads/2.3.x by this push:
new f05367579 MYFACES-4495: Throw NPE when necessary (#382)
f05367579 is described below
commit f05367579ffdea7042776c7dac6e8514b5004d36
Author: Paul A. Nicolucci <pn...@gmail.com>
AuthorDate: Tue Nov 15 09:58:50 2022 -0500
MYFACES-4495: Throw NPE when necessary (#382)
---
impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java b/impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java
index d563aabd6..c7301b9e2 100755
--- a/impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java
+++ b/impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java
@@ -588,6 +588,7 @@ public class ApplicationImpl extends Application
public void publishEvent(FacesContext facesContext, Class<? extends SystemEvent> systemEventClass,
Class<?> sourceBaseType, Object source)
{
+ checkNull(facesContext, "facesContext");
checkNull(systemEventClass, "systemEventClass");
checkNull(source, "source");
@@ -646,6 +647,7 @@ public class ApplicationImpl extends Application
@Override
public void publishEvent(FacesContext facesContext, Class<? extends SystemEvent> systemEventClass, Object source)
{
+ checkNull(source, "source");
publishEvent(facesContext, systemEventClass, source.getClass(), source);
}