You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/08/08 03:02:09 UTC
[GitHub] elvis9xu163 opened a new issue #2218: Telnet invoke 方法时当参数中有null值时永远返回null (When using telnet "invoke", if there is a [null] param, the response always be [null] too)
elvis9xu163 opened a new issue #2218: Telnet invoke 方法时当参数中有null值时永远返回null (When using telnet "invoke", if there is a [null] param, the response always be [null] too)
URL: https://github.com/apache/incubator-dubbo/issues/2218
dubbo> invoke com.alibaba.dubbo.demo.DemoService.sayHello(null) // null as parameter
null
reason:
InvokeTelnetHandler.isMatch(Class<?>[] types, List<Object> args)
...
} else if (ReflectUtils.isPrimitive(arg.getClass())) { // there should judge arg is null first
原因: InvokeTelnetHandler.isMatch(Class<?>[] types, List<Object> args)中判断arg的类型时未做null值判断, arg.getClass()抛出了空指针异常
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org