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 181862

Summary: Wrong order of toolCollectors initialization
Product: cnd Reporter: Andrew Krasny <akrasny>
Component: D-LightAssignee: Andrew Krasny <akrasny>
Status: VERIFIED FIXED    
Severity: normal CC: apepin, mromashova, sustaining
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: proposed patch

Description Andrew Krasny 2010-03-11 08:36:45 UTC
This is required for dlight project and needs to be done in 6.8 patch2.
[changes are not applicable to 6.9]

The problem is that init() method of toolCollector called _before_ IndicatorDataProvider's init (which initializes serviceInfoDataStorage). But in case if toolCollector implements IndicatorDataProvider interface it may want to access serviceInfoDataStorage in it's init... 

The fix is in attachment.
Comment 1 Andrew Krasny 2010-03-11 08:38:54 UTC
Created attachment 95049 [details]
proposed patch
Comment 2 Andrew Krasny 2010-03-11 08:41:24 UTC
Proposed fix is attached.
Maria, could you, please review and set 'verified' status...
Comment 3 Maria Tishkova 2010-03-11 08:43:14 UTC
reviewed, fix is OK
Comment 4 pgebauer 2010-03-15 18:16:54 UTC
The fix has been ported into the release68_fixes branch.
http://hg.netbeans.org/release68_fixes/rev/81e1cc5191d8
Comment 5 Alexander Pepin 2010-03-19 12:23:04 UTC
verified in patch2 candidate 20100318