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

Summary: NPE: when creating JUnit Test for existing Class
Product: projects Reporter: dmladek <dmladek>
Component: Generic InfrastructureAssignee: Jesse Glick <jglick>
Status: CLOSED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: NPE stacktrace

Description dmladek 2004-05-27 15:28:36 UTC
Product Version       = NetBeans IDE Dev (Build
200405261800)
  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             =
/usr/local/java/j2sdk1.4.2_04/jre
  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

Reproduction:
==============
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