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.