Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7901331

JCov fails with NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • TBD_Major
    • jcov_3.0
    • tools
    • None
    • generic
    • generic

      JCov fails with NPE if the parent directory of the specified instrumentation path is null.
      NPE is thrown in the 91 line. The cause is because productDir.getParentFile() returns null.
      Workaround is to specify absolute path.

      SEVERE : Can not zip product
      Exception details: NPE in com.sun.tdk.jcov.JCov.run(JCov.java:91)

      Steps to reproduce:
      java -jar jcov.jar JCov -pro build -command "<command>"

            afedorch Alexey Fedorchenko (Inactive)
            aeremeev Andrei Eremeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: