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 33428 - Exception during projects switching
Summary: Exception during projects switching
Status: VERIFIED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: -S1S-
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@projects
URL:
Keywords: RANDOM, THREAD
Depends on:
Blocks:
 
Reported: 2003-05-06 15:49 UTC by Milan Kubec
Modified: 2004-02-19 08:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc stack trace (1.08 KB, text/plain)
2003-05-06 15:50 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2003-05-06 15:49:29 UTC
NullPointerException was thrown when switching
projects. I had couple of ant scripts added to
project tab and opened in editor. Cannot reproduce.
Comment 1 Milan Kubec 2003-05-06 15:50:11 UTC
Created attachment 10231 [details]
exc stack trace
Comment 2 Jesse Glick 2003-05-06 17:55:38 UTC
AntProjectDataObject adds this cookie in its constructor; apparently
createNodeDelegate is being called before the constructor finishes
(!). Probably a consequence of some datasystems bug, e.g. issue #20022.

Workaround might to have createNodeDelegate check to make sure the
data object is initialized, and if not, wait for it to be
(Object.wait() somehow).

Or for AntProjectNode to delay adding a change listener to the
AntProjectCookie until the first time one of the relevant methods is
called (get*Icon, getShortDescription, getCookie, createSheet).
Comment 3 Vitezslav Stejskal 2003-05-12 15:16:42 UTC
Hardly reproducible, will try to fix in next release.
Comment 4 Jesse Glick 2003-12-19 15:14:54 UTC
Doesn't seem to have happened recently?
Comment 5 Milan Kubec 2004-02-19 08:46:32 UTC
Haven't seen recently, verified.