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 119248 - NPE opening existing projects
Summary: NPE opening existing projects
Status: CLOSED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-17 17:11 UTC by _ gordonp
Modified: 2007-11-23 13:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (2.74 KB, text/plain)
2007-10-17 17:12 UTC, _ gordonp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gordonp 2007-10-17 17:11:41 UTC
After a fresh update and rebuild of cnd, I've gotten the attached exception trying to open 3
existing projects. I restarted and tried to open Quote. After dismissing the NPE dialog its
at least highlighted in my Projects tab. I then opened another project, got the same NPE, and
had *2* highlighted open projects (ie, 2 projects with "main" highlighting).
Comment 1 _ gordonp 2007-10-17 17:12:11 UTC
Created attachment 51139 [details]
stack trace
Comment 2 Vladimir Voskresensky 2007-10-17 17:51:19 UTC
Thomas, may be the side effect of not read descriptor in open hook?

seems MakeProjectConfigurationProvider was created with null param, if it's not possible, please add assert statement or
throw NPE exception to catch the creator.
also, please make fields final if they can be asigned only in constructor and don't have set* methods
Comment 3 Thomas Preisler 2007-10-17 18:03:54 UTC
I was wondering that too. The bug is not reproducible anymore (same machine, same build) so I'm not sure. Gordon got the exceptions when debugging and 
that could have shifted the timing enough to expose a latent race condition. We will keep an aye on it the next couple of days and if it happens again, I will 
consider enabling project creation from ProjectOpenHook again.
Comment 4 Thomas Preisler 2007-10-18 22:09:48 UTC
Gordon was able to reproduce - even with same build on same system - and I haven't seen or heard any other problems in this area so it is likely not 
reproducible. Will wait another day and close it if still no reports of same problem.
Comment 5 Thomas Preisler 2007-10-18 22:38:26 UTC
Correction: Gordon was able to reproduce... -> Gordon was *not* able to reproduce...
Comment 6 Thomas Preisler 2007-10-19 19:44:43 UTC
Closed. No evidence of what went wrong....
Comment 7 Alexander Pepin 2007-11-23 13:13:04 UTC
closed as not reproducible any more