fix(java): guard against possible null sym field
@@ -434,7 +434,7 @@ public class KytheTreeScanner extends JCTreeScanner<JavaNode, TreeContext> {
for (JCTree member : classDef.getMembers()) {
if (member instanceof JCMethodDecl) {
JCMethodDecl method = (JCMethodDecl) member;
- if (!method.sym.isConstructor()) {
+ if (method.sym == null || !method.sym.isConstructor()) {
continue;
}
