fix(java_indexer): avoid NPE when visiting lambda targets
@@ -600,9 +600,11 @@ public class KytheTreeScanner extends JCTreeScanner<JavaNode, TreeContext> {
emitAnchor(ctx, EdgeKind.DEFINES, lambdaNode);
for (Type target : getTargets(lambda)) {
+ if (target != null) {
VName targetNode = getNode(target.asElement());
entrySets.emitEdge(lambdaNode, EdgeKind.EXTENDS, targetNode);
}
+ }
scan(lambda.body, ctx);
scanList(lambda.params, ctx);
