This is an automated email from the ASF dual-hosted git repository.
carryxyh pushed a commit to branch 3.x-dev
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git
The following commit(s) were added to refs/heads/3.x-dev by this push:
new 2faf5e7 NullPointerException (#2571)
2faf5e7 is described below
commit 2faf5e71f8cdb732e0234359594c668f39d82157
Author: Wang jie <[email protected]>
AuthorDate: Thu Sep 27 17:48:09 2018 +0800
NullPointerException (#2571)
---
.../main/java/org/apache/dubbo/common/extension/ExtensionLoader.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java
b/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java
index fcbb292..730a71f 100644
---
a/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java
+++
b/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java
@@ -865,7 +865,7 @@ public class ExtensionLoader<T> {
boolean hasInvocation = false;
for (int i = 0; i < pts.length; ++i) {
- if
(pts[i].getName().equals("org.apache.dubbo.rpc.Invocation")) {
+ if
(("org.apache.dubbo.rpc.Invocation").equals(pts[i].getName())) {
// Null Point check
String s = String.format("\nif (arg%d == null) throw
new IllegalArgumentException(\"invocation == null\");", i);
code.append(s);