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 48857 - [40cat] NPE after switch of Projects
Summary: [40cat] NPE after switch of Projects
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks: 41537
  Show dependency tree
 
Reported: 2004-09-10 16:00 UTC by skesper
Modified: 2004-10-13 13:45 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 skesper 2004-09-10 16:00:56 UTC
[ BUILD # : 200409081800 ]
[ JDK VERSION : J2SE 1.5.0 ]

I have three Projects opened. I was switching from one Project to the other and clicked on build. Got this NPE:

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
	at org.netbeans.modules.java.j2seproject.J2SEProjectUtil.hasMainMethod(J2SEProjectUtil.java:161)
	at org.netbeans.modules.java.j2seproject.J2SEProjectUtil.getMainClasses(J2SEProjectUtil.java:118)
	at org.netbeans.modules.java.j2seproject.ui.customizer.MainClassChooser$1.run(MainClassChooser.java:77)
	at org.openide.util.Task.run(Task.java:136)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
Comment 1 Jiri Rechtacek 2004-09-13 09:56:51 UTC
I'm not able to reproduce it on my build and with my projects. The NPE
is thrown from overtaken code (JavaNode.hasMain()), I have added some
assertions to figure out what's wrong. Please, add to comment which
assertion fails if it appears again on any new dev build. Thanks
Comment 2 Jiri Rechtacek 2004-10-13 13:45:23 UTC
It's unreproducible in recent builds, no reported responds for long.
Closed as WORKSFORME.