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 43931 - NPE: when creating JUnit Test for existing Class
Summary: NPE: when creating JUnit Test for existing Class
Status: CLOSED DUPLICATE of bug 43870
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Jesse Glick
Depends on:
Reported: 2004-05-27 15:28 UTC by dmladek
Modified: 2004-08-13 12:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

NPE stacktrace (2.06 KB, text/plain)
2004-05-27 15:29 UTC, dmladek

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2004-05-27 15:28:36 UTC
Product Version       = NetBeans IDE Dev (Build
  Operating System      = Linux version
2.4.22-1.2115.nptl running on i386
  Java; VM; Vendor      = 1.4.2_04; Java
HotSpot(TM) Client VM 1.4.2_04-b05; Sun
Microsystems Inc.
  Java Home             =
  System Locale; Encod. = cs_CZ (nb); ISO-8859-2

From the NPE stacktrace it seems that JUnit is
inocent, but I'm getting this NPE when creating
JUnit Test for Existing class

1) create new Desktop->J2SE Application project
   with Main class.
2) Invoke New File and choose:
   JUnit->Test for Existing Class
3)  type (browse doesn't work) Main in "Clss to 
    Test:" text field
4)  and press finish

and you've got the NPE. It's quite annoying thus P2
Comment 1 dmladek 2004-05-27 15:29:01 UTC
Created attachment 15320 [details]
NPE stacktrace
Comment 2 Jesse Glick 2004-05-27 16:42:19 UTC

*** This issue has been marked as a duplicate of 43870 ***
Comment 3 dmladek 2004-07-30 13:22:27 UTC
stacktraces are same in bouth bugs