Skip to content

Commit

Permalink
fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
li-shen committed Jan 15, 2015
1 parent 0e92ce3 commit 160738b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ protected void encodeResponseData(Channel channel, ObjectOutput out, Object data
// workaround for the target method matching of kryo & fst
private boolean containComplexArguments(RpcInvocation invocation) {
for (int i = 0; i < invocation.getParameterTypes().length; i++) {
if (invocation.getParameterTypes()[i] != invocation.getArguments()[i].getClass()) {
if (invocation.getArguments()[i] == null || invocation.getParameterTypes()[i] != invocation.getArguments()[i].getClass()) {
return true;
}
}
Expand Down

0 comments on commit 160738b

Please sign in to comment.