Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 36354 invoked from network); 24 Dec 2009 09:25:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Dec 2009 09:25:56 -0000 Received: (qmail 51732 invoked by uid 500); 24 Dec 2009 09:25:56 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 51699 invoked by uid 500); 24 Dec 2009 09:25:56 -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 51689 invoked by uid 99); 24 Dec 2009 09:25:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Dec 2009 09:25:56 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Thu, 24 Dec 2009 09:25:49 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6919D234C04C for ; Thu, 24 Dec 2009 01:25:29 -0800 (PST) Message-ID: <643334510.1261646729416.JavaMail.jira@brutus> Date: Thu, 24 Dec 2009 09:25:29 +0000 (UTC) From: "Ray Chen (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (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 [ https://issues.apache.org/jira/browse/HARMONY-6407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ray Chen closed HARMONY-6407. ----------------------------- Patch verified, thanks Tony > [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 > Fix For: 6.0M1 > > 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.