Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BABB591AC for ; Tue, 14 Feb 2012 23:19:15 +0000 (UTC) Received: (qmail 55875 invoked by uid 500); 14 Feb 2012 23:19:15 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 55843 invoked by uid 500); 14 Feb 2012 23:19:15 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 55835 invoked by uid 99); 14 Feb 2012 23:19:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 23:19:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 23:19:12 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id EA2E9238889B for ; Tue, 14 Feb 2012 23:18:51 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1244267 - in /ant/ivy/core/trunk: CHANGES.txt src/java/org/apache/ivy/util/url/IvyAuthenticator.java Date: Tue, 14 Feb 2012 23:18:51 -0000 To: notifications@ant.apache.org From: maartenc@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120214231851.EA2E9238889B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: maartenc Date: Tue Feb 14 23:18:51 2012 New Revision: 1244267 URL: http://svn.apache.org/viewvc?rev=1244267&view=rev Log: FIX: NullPointerException when providing empty password to (IVY-1335) Modified: ant/ivy/core/trunk/CHANGES.txt ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/IvyAuthenticator.java Modified: ant/ivy/core/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/CHANGES.txt?rev=1244267&r1=1244266&r2=1244267&view=diff ============================================================================== --- ant/ivy/core/trunk/CHANGES.txt (original) +++ ant/ivy/core/trunk/CHANGES.txt Tue Feb 14 23:18:51 2012 @@ -139,6 +139,7 @@ for detailed view of each issue, please - IMPROVEMENT: ivy:retrieve can now convert 'dotted'-organisation names into a directory tree. - IMPROVEMENT: ivy:retrieve now accepts a nested mapper type. +- FIX: NullPointerException when providing empty password to (IVY-1335) - FIX: [originalname] not expanded for source and javadoc types during publish in ivy:install (IVY-1324) - FIX: cannot resolve from repositories that return HTTP 204 in response to an HTTP HEAD request (IVY-1328) - FIX: extra attributes lost from info when ivy file is merged with parent (IVY-1206) Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/IvyAuthenticator.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/IvyAuthenticator.java?rev=1244267&r1=1244266&r2=1244267&view=diff ============================================================================== --- ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/IvyAuthenticator.java (original) +++ ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/IvyAuthenticator.java Tue Feb 14 23:18:51 2012 @@ -94,7 +94,8 @@ public final class IvyAuthenticator exte + Credentials.buildKey(getRequestingPrompt(), getRequestingHost()) + "' c='" + c + "'"); if (c != null) { - result = new PasswordAuthentication(c.getUserName(), c.getPasswd().toCharArray()); + final String password = c.getPasswd() == null ? "" : c.getPasswd(); + result = new PasswordAuthentication(c.getUserName(), password.toCharArray()); } }