carryxyh closed pull request #2571: NullPointerException
URL: https://github.com/apache/incubator-dubbo/pull/2571
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

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 fcbb292ec7..730a71fe58 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 @@ private String createAdaptiveExtensionClassCode() {
 
                 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);


 

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to