Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6411379

NPE from JavacTrees.getPath

XMLWordPrintable

    • b85
    • generic
    • generic
    • Verified

      In JavacTrees.getPath(Elememt, AnnotationMirror, AnnotationValue)
      the call of elements.getTreeAndTopLevel seems to (?) return null if the element is not found -- eg a PackageElement. This causes an NPE on the next line of code.
      Ditto in JavacTrees.getTree

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: