From commits-return-61135-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Tue Dec 22 08:08:55 2009 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 30893 invoked from network); 22 Dec 2009 08:08:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Dec 2009 08:08:55 -0000 Received: (qmail 85652 invoked by uid 500); 22 Dec 2009 08:08:54 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 85614 invoked by uid 500); 22 Dec 2009 08:08:54 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 85605 invoked by uid 99); 22 Dec 2009 08:08:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2009 08:08:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2009 08:08:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 37054234C1EE for ; Tue, 22 Dec 2009 00:08:31 -0800 (PST) Message-ID: <488353069.1261469311212.JavaMail.jira@brutus> Date: Tue, 22 Dec 2009 08:08:31 +0000 (UTC) From: "Ray Chen (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-6407) [java6][classlib]NetworkInterface constructor different from trunk, will throw NPE if network interface has no address In-Reply-To: <231216875.1261229238460.JavaMail.jira@brutus> 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/HARMONY-6407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ray Chen updated HARMONY-6407: ------------------------------ Patch Info: [Patch Available] > [java6][classlib]NetworkInterface constructor different from trunk, will throw NPE if network interface has no address > ---------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-6407 > URL: https://issues.apache.org/jira/browse/HARMONY-6407 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 6.0M1 > Reporter: Ray Chen > Assignee: Tony Wu > Attachments: Harmony6407.diff > > > NetworkInterface of java6 branch is different from NetworkInterface of trunk. > In their constructors, trunk simply assign the addresses to the "addresses" field, but in java6 branch it assign addresses one by one which ignore the situation that passed in addresses may be null. > Merge trunk to java6, or add a if(addresses != null) will solve the NPE error. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.