OscarRodriguezPrieto / ProgQuery

ProgQuery is a system to extract useful syntactic and semantic information from source code programs and store it in a graph database for posterior querying.
MIT License
15 stars 4 forks source link

Some compilation units with mltiple type declarations were visited twice #37

Open OscarRodriguezPrieto opened 2 years ago

OscarRodriguezPrieto commented 2 years ago

This causes Caused by: java.lang.NullPointerException: Cannot invoke "com.sun.source.util.TreePath.getLeaf()" because "path" is null when visiting an inexistent array type. This is because an alredy compiled version of the class is visited in which, instead of the actual members, excepting an array storing a lower-level representation of the class. This causes nullpointer when calling JavacInfo.getTypeMirror for the unknown type of the array type.