We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d279b08 commit 087c267Copy full SHA for 087c267
components/sbm-core/src/main/java/org/springframework/sbm/java/impl/OpenRewriteMethod.java
@@ -164,7 +164,12 @@ public Optional<String> getReturnValue() {
164
return Optional.empty();
165
}
166
167
- return Optional.of(TypeUtils.asFullyQualified(returnTypeExpression.getType()).getFullyQualifiedName());
+ JavaType.FullyQualified jfq = TypeUtils.asFullyQualified(returnTypeExpression.getType());
168
+ if (jfq == null) {
169
+ return Optional.empty();
170
+ } else {
171
+ return Optional.of(jfq.getFullyQualifiedName());
172
+ }
173
174
175
// FIXME: renaming method should not require a methodPattern in this context
0 commit comments