Java indexer: guard against null inferred lambda types
@@ -521,10 +521,12 @@ public class KytheTreeScanner extends JCTreeScanner<JavaNode, TreeContext> {
VName lambdaNode = entrySets.newLambdaAndEmit(filePositions, lambda).getVName();
emitAnchor(ctx, EdgeKind.DEFINES, lambdaNode);
+ if (lambda.targets != null) {
for (Type target : lambda.targets) {
VName targetNode = getNode(target.asElement());
entrySets.emitEdge(lambdaNode, EdgeKind.EXTENDS, targetNode);
}
+ }
scan(lambda.body, ctx);
scanList(lambda.params, ctx);
