Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Throw IllegalArgumentException if parameters are null

  • Loading branch information...
commit 736d89a274ad529378be0e7afb874bf3326283ea 1 parent 9c492a7
@stuartwdouglas stuartwdouglas authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/main/java/org/jboss/invocation/InterceptorContext.java
View
3  src/main/java/org/jboss/invocation/InterceptorContext.java
@@ -316,6 +316,9 @@ public Method getMethod() {
}
public void setParameters(final Object[] params) {
+ if(params == null) {
+ throw new IllegalArgumentException("Parameters must not be null");
+ }
if (method != null) {
final Class<?>[] parameterTypes = method.getParameterTypes();
if (params.length != parameterTypes.length) {
Please sign in to comment.
Something went wrong with that request. Please try again.