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 23531 - unable to set project main class
Summary: unable to set project main class
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-15 15:24 UTC by Jiri Mzourek
Modified: 2003-07-01 14:17 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 Jiri Mzourek 2002-05-15 15:24:33 UTC
How to reproduce:
Disable and enable projects module. Now, mentioned
action in project menu doesn't display the
appropriate dialog and the action in tools menu
throws exception:

Annotation: Exception occurred in Request
Processor
java.lang.NullPointerException
        at
org.openide.loaders.DataShadow.create(DataShadow.java:244)
        at
org.openide.loaders.DataShadow.create(DataShadow.java:228)
        at
org.netbeans.modules.projects.settings.ProjectOption.setMainClass(ProjectOption.java:165)
        at
org.netbeans.modules.projects.SetMainClassCookieAction.performAction(SetMainClassCookieAction.java:51)
        at
org.openide.util.actions.NodeAction.performAction(NodeAction.java:179)
        at
org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:170)
        at
org.netbeans.core.ModuleActions$1.run(ModuleActions.java:100)
        at
org.openide.util.Task.run(Task.java:136)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:599)
Comment 1 Vitezslav Stejskal 2002-05-20 18:11:22 UTC
Actions are disabled when there isn't any project opened.
Comment 2 Milan Kubec 2002-10-14 16:10:56 UTC
Verified.
Comment 3 Quality Engineering 2003-07-01 14:17:58 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.