From notifications-return-30254-archive-asf-public=cust-asf.ponee.io@ant.apache.org Thu Mar 1 13:39:57 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 888CC18064D for ; Thu, 1 Mar 2018 13:39:56 +0100 (CET) Received: (qmail 42614 invoked by uid 500); 1 Mar 2018 12:39:55 -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 42601 invoked by uid 99); 1 Mar 2018 12:39:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2018 12:39:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 27182C0294 for ; Thu, 1 Mar 2018 12:39:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -10.311 X-Spam-Level: X-Spam-Status: No, score=-10.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ZZM4t_PqwXXX for ; Thu, 1 Mar 2018 12:39:54 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 0A0105F126 for ; Thu, 1 Mar 2018 12:39:54 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id 87054E00B5 for ; Thu, 1 Mar 2018 12:39:53 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id 9327060071; Thu, 1 Mar 2018 12:39:52 +0000 (UTC) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: [Bug 62148] New: NullPointerException in PumpStreamHandler Date: Thu, 01 Mar 2018 12:39:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Core X-Bugzilla-Version: nightly X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mjkim0324@hotmail.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 https://bz.apache.org/bugzilla/show_bug.cgi?id=3D62148 Bug ID: 62148 Summary: NullPointerException in PumpStreamHandler Product: Ant Version: nightly Hardware: Macintosh Status: NEW Severity: normal Priority: P2 Component: Core Assignee: notifications@ant.apache.org Reporter: mjkim0324@hotmail.com Target Milestone: --- Hello. I have a unit test for PumpStreamHandler that throws NullPointerException as follows. public void test() { PumpStreamHandler pump =3D new PumpStreamHandler(); pump.start(); } public void start() { outputThread.start(); //NPE occurs errorThread.start(); if (inputThread !=3D null) { inputThread.start(); } } I'm wondering why outputThread and errorThread are not null-checked like inputThread. Is this intentional or a bug? Thank you for your time. --=20 You are receiving this mail because: You are the assignee for the bug.=