Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 66095 invoked from network); 25 Mar 2011 17:54:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Mar 2011 17:54:46 -0000 Received: (qmail 64540 invoked by uid 500); 25 Mar 2011 17:54:45 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 64511 invoked by uid 500); 25 Mar 2011 17:54:45 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 64503 invoked by uid 99); 25 Mar 2011 17:54:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2011 17:54:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2011 17:54:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C99B34DE42 for ; Fri, 25 Mar 2011 17:54:05 +0000 (UTC) Date: Fri, 25 Mar 2011 17:54:05 +0000 (UTC) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1125772000.11749.1301075645822.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1627211432.4057.1299578279558.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-7174) null is displayed in the console,if the src path is invalid while doing copyToLocal operation from commandLine MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-7174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011310#comment-13011310 ] Tsz Wo (Nicholas), SZE commented on HADOOP-7174: ------------------------------------------------ Hi Uma, some tests in HDFS failed after this; see {{HDFS-1786}}. Could you fix them as well? > null is displayed in the console,if the src path is invalid while doing copyToLocal operation from commandLine > -------------------------------------------------------------------------------------------------------------- > > Key: HADOOP-7174 > URL: https://issues.apache.org/jira/browse/HADOOP-7174 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Reporter: Uma Maheswara Rao G > Assignee: Uma Maheswara Rao G > Priority: Minor > Fix For: 0.21.1, 0.22.0, 0.23.0 > > Attachments: HADOOP-7174.1.patch, HADOOP-7174.patch > > > When we perform copyToLocal operations from commandLine and if src Path is invalid > srcFS.globStatus(srcpath) will return null. So, when we find the length of resulted value, it will *throw NullPointerException*. > Since we are handling generic exception , it will display null as the message. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira