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.
Happened during first start of FFJIE. My guess (Jarda thinks so too): the NPE is thrown from list.SOMEMETHOD(), so list must be null. But list is assigned to a clearly non-null value in DataFolder constructor, is private, and is only reassigned in handleMove (where its new value also cannot be null, because it is coming from another DataFolder, and it was dereferenced too). So perhaps DataFolder.refresh() is being called before the DataFolder constructor finished, which is possible since we are throwing around a this-reference to who knows what code from the constructor. DataObjectPool.toNotify (says Jarda) will tell you if a given object has finished its constructor yet or not. So maybe somebody should try to not refresh folders listed here. Consider this a org.openide.loaders maturita. :-)
Created attachment 649 [details] First start log with exception
I tried to fix it (but I couldn't reproduce this behaviour). Fix will be in next dev build - #132 Change is in DataObjectPool.refreshAllFolders method: Folders listed in toNotify collection won't be refreshed more, because they creation isn't finished yet.
closed