Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-423

NullPointerException when existing Manifest.MF file has no Class-Path element

    XMLWordPrintableJSON

Details

    Description

      A NullPointerException arises when running the rad goal against a project containing a manifest that has no Class-Path element. The exception is caught and the only error on the screen is "No <project-path>\META-INF\MANIFEST.MF file found". The problem is in the RadManifestWriter.orderClasspath() method. It needs to check newValue for null before trying to split it up.

      Here's the manifest I had that caused the problem:

      Manifest-Version: 1.0
      Build-Jdk: 1.4.2
      Built-By: Michael Johns
      Created-By: Apache Maven
      

      Notice that it has no Class-Path element.

      Attachments

        1. pom.xml
          8 kB
          Michael Johns

        Activity

          People

            baerrach Barrie Treloar
            arabull Michael Johns
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: