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 41808 - [36cat] NPE when creating a new project
Summary: [36cat] NPE when creating a new project
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-07 21:46 UTC by Jan Chalupa
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

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 Jan Chalupa 2004-04-07 21:46:28 UTC
Reported by a NB 3.6 NetCAT participant on RC3:

-----------------------------------------------
I got the following exception when I tried to
create a new process with RC3.
I installed it into a new directory and it created
a new RC3 profile
directory under .netbeans in my linux user dir!

here's the exception I get:

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
	at
org.netbeans.modules.java.parser.ParsingSupport.getSourceImpl(ParsingSupport.java:397)
	at
org.netbeans.modules.java.parser.SourceImplProxy.findModelDelegate(SourceImplProxy.java:292)
	at
org.netbeans.modules.java.parser.SourceImplProxy.safeFindModelDelegate(SourceImplProxy.java:310)
	at
org.netbeans.modules.java.parser.SourceImplProxy.getAllClasses(SourceImplProxy.java:164)
	at
org.openide.src.SourceElement.getAllClasses(SourceElement.java:242)
	at
org.netbeans.modules.java.codesync.SourceConnectionSupport.refreshLinks(SourceConnectionSupport.java:335)
	at
org.netbeans.modules.java.codesync.SourceConnectionSupport.access$000(SourceConnectionSupport.java:42)
	at
org.netbeans.modules.java.codesync.SourceConnectionSupport$1.run(SourceConnectionSupport.java:156)
	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 cm 2004-04-08 07:24:19 UTC
Unfortunately I could not reproduce it. I deleted the user dir and
started up clean just like I did when the exception occured the first
time but could create the project without a problem. The IDE did work
after the exception and also the project was created and I could work
with it after adding files to it ;) My machine is a new P4 2.6GHZ so
yes it's HT enabled! HTH
Comment 2 Jan Pokorsky 2004-04-08 10:28:00 UTC
There is missing synchronization in ParsingSupport.getSourceImpl. It
will be fixed in the next release.
Comment 3 Jan Becicka 2004-07-02 00:31:46 UTC
This part of the code was completely rewritten.