ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 62148] New: NullPointerException in PumpStreamHandler
Date Thu, 01 Mar 2018 12:39:52 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=62148

            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 = new PumpStreamHandler();
  pump.start();
}

public void start() {
    outputThread.start(); //NPE occurs
    errorThread.start();
    if (inputThread != 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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message