This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 48729

Summary: [40cat] On execution of command-line-based project, Netbeans doesn't wait for input.
Product: platform Reporter: micman2003 <micman2003>
Component: Output WindowAssignee: issues@platform <issues>
Status: CLOSED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

Description micman2003 2004-09-08 21:40:26 UTC
[ BUILD # : 200408191352 ]
[ JDK VERSION : J2SE 1.5.0 ]

I have a project that is command-line-based, and when I execute the project in Beta 1, it doesn't wait for the user to enter any input.  It gives me a null pointer exception, instead, and exits.

Code to reproduce the error is simple, as follows:

BufferedReader bufRead = new BufferedReader(new InputStreamReader(System.in));
String input = bufRead.readLine();
input = input.trim();
System.out.println(input);

The null pointer appears when the string is to be trimmed.
Comment 1 Jan Becicka 2004-09-13 12:46:49 UTC
Core/output issue? I'm not sure. Please reassign if I'm wrong.
Comment 2 Marian Mirilovic 2004-09-14 08:56:35 UTC

*** This issue has been marked as a duplicate of 47708 ***
Comment 3 Marian Mirilovic 2005-07-12 10:15:57 UTC
closed