Skip to content
Permalink
Browse files
Fix possible null pointer exception in ApiDocsDubboGenericUtil#invoke (
  • Loading branch information
KeRan213539 committed Apr 1, 2021
1 parent ba2c35b commit 0b8b688afd6bd97f36906a0dad82e1e0d7f3cbee
Showing 1 changed file with 6 additions and 6 deletions.
@@ -175,13 +175,13 @@ public static CompletableFuture<Object> invoke(String address, String interfaceN
} else {
future = CompletableFuture.supplyAsync(() -> genericService.$invoke(methodName, paramTypes, paramValues), EXECUTOR);
}
future.exceptionally(ex -> {
if (StringUtils.contains(ex.toString(), "Failed to invoke remote method")) {
removeReferenceConfig(address, interfaceName, version, group);
}
return ex;
});
}
future.exceptionally(ex -> {
if (StringUtils.contains(ex.toString(), "Failed to invoke remote method")) {
removeReferenceConfig(address, interfaceName, version, group);
}
return ex;
});
}
return future;
}

0 comments on commit 0b8b688

Please sign in to comment.