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 59201 - NPE thrown in the dialog asking for the main class
Summary: NPE thrown in the dialog asking for the main class
Status: VERIFIED DUPLICATE of bug 59054
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-24 08:16 UTC by Jiri Prox
Modified: 2006-01-17 13:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception (591 bytes, text/plain)
2005-05-24 08:19 UTC, Jiri Prox
Details
project (12.32 KB, application/x-gzip)
2005-05-24 08:20 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2005-05-24 08:16:55 UTC
NB 4.2 (200505221800)
JDK 1.5.0_04

java.lang.NullPointerException
	at
org.netbeans.modules.java.j2seproject.J2SEProjectUtil.getMainClasses(J2SEProjectUtil.java:118)

is thrown when launching the application. The dialog asking for main class
appears although the main class is setted in the properies of the project.

Steps to reproduce:
1) open attached project
2) click the run button

Note: the project was originaly using one additional library, but it doesn't
work with it either, so I remove this library (for the source as well) to make
it more simple. If it's important, i can attach the original project with the
library.
Comment 1 Jiri Prox 2005-05-24 08:19:58 UTC
Created attachment 22274 [details]
exception
Comment 2 Jiri Prox 2005-05-24 08:20:54 UTC
Created attachment 22275 [details]
project
Comment 3 Jan Lahoda 2005-05-24 08:29:42 UTC
->java/j2seproject.
Comment 4 Jesse Glick 2005-05-24 19:26:23 UTC
I think this is a dupe of something I filed recently? But I can't find it now.
Anyway, I have also seen this exception just today on a fresh project. Don't
know what causes it.
Comment 5 Tomas Zezula 2005-05-25 08:01:23 UTC
Yes, it is a duplicate of #59054

*** This issue has been marked as a duplicate of 59054 ***
Comment 6 Jiri Prox 2006-01-17 13:57:03 UTC
veridied duplicate