This commit is contained in:
2026-06-27 20:09:14 +02:00
parent 4511e0e02f
commit 74a4e66a33
2 changed files with 6 additions and 0 deletions

View File

@@ -629,6 +629,9 @@ public abstract class AbstractCallGraphEngine implements CallGraphEngine {
}
protected String resolveArgument(Expression expr) {
if (expr == null) {
return "null";
}
if (expr instanceof LambdaExpression le) {
ASTNode body = le.getBody();
if (body instanceof Expression bodyExpr) {

View File

@@ -124,6 +124,9 @@ public class JdtCallGraphEngine extends AbstractCallGraphEngine {
@Override
protected String resolveArgument(org.eclipse.jdt.core.dom.Expression expr) {
if (expr == null) {
return "null";
}
// Extract from constructor args (e.g., new CustomMessage(OrderEvent.PROCESS, ...))
org.eclipse.jdt.core.dom.Expression unwrappedBuilder = unwrapMessageBuilder(expr);
if (unwrappedBuilder != expr) {