fix: Uncaught resolve exception with JavaParser
@@ -177,14 +177,14 @@ public class JavaParserUtil {
*/
private static Object checkReferencedSelection(Node node) {
if (node instanceof Resolvable<?>) {
+ Object resolved = null;
+ try {
if (node instanceof ReferenceType) {
ResolvedType dec = ((ReferenceType) node).resolve();
String name = toInternal(dec);
return new ClassSelection(name, false);
}
Resolvable<?> r = (Resolvable<?>) node;
- Object resolved = null;
- try {
resolved = r.resolve();
} catch (Throwable ex) {
return null;
