Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-221

removeCheckoutDirectory throws NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-3
    • 1.0-beta-5
    • wagon-scm
    • None

    Description

      [INFO] [deploy:deploy]
      altDeploymentRepository = null
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] null
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.NullPointerException
      at org.codehaus.plexus.util.FileUtils.deleteDirectory(FileUtils.java:1219)
      at org.apache.maven.wagon.providers.scm.ScmWagon.removeCheckoutDirectory(ScmWagon.java:180)
      at org.apache.maven.wagon.providers.scm.ScmWagon.closeConnection(ScmWagon.java:526)
      at org.apache.maven.wagon.AbstractWagon.disconnect(AbstractWagon.java:153)
      at org.apache.maven.artifact.manager.DefaultWagonManager.disconnectWagon(DefaultWagonManager.java:703)
      at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:291)
      at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:160)

      The NPE is caused by removeCheckoutDirectory, probably because checkoutDirectory is null.

      private void removeCheckoutDirectory()
      throws ConnectionException
      {
      try

      { FileUtils.deleteDirectory( checkoutDirectory ); }

      catch ( IOException e )

      { throw new ConnectionException( "Unable to cleanup checkout directory", e ); }

      }

      Please let me known when additional information is required.

      Attachments

        Activity

          People

            joakime Joakim Erdfelt
            areuser Arnold Reuser
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: