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 - [40cat] On execution of command-line-based project, Netbeans doesn't wait for input.
Summary: [40cat] On execution of command-line-based project, Netbeans doesn't wait for...
Status: CLOSED DUPLICATE of bug 47708
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-08 21:40 UTC by micman2003
Modified: 2008-12-22 19:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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