fix another NPE in webflux routing analysis

This commit is contained in:
Martin Lippert
2019-03-30 17:55:14 +01:00
parent 840a05c9a1
commit 19db26aca2

View File

@@ -142,10 +142,9 @@ public class WebfluxRouterSymbolProvider extends AbstractSymbolProvider {
extractNestedValue(routerInvocation, path, (methodInvocation) -> {
IMethodBinding methodBinding = methodInvocation.resolveMethodBinding();
String methodName = methodBinding.getName();
try {
if (WebfluxUtils.REQUEST_PREDICATE_PATH_METHOD.equals(methodName)) {
if (methodBinding != null && WebfluxUtils.REQUEST_PREDICATE_PATH_METHOD.equals(methodBinding.getName())) {
StringLiteral stringLiteral = WebfluxUtils.extractStringLiteralArgument(methodInvocation);
if (stringLiteral != null) {
Range range = doc.toRange(stringLiteral.getStartPosition(), stringLiteral.getLength());