Bug 54099 - [Workbench] NPE in WorkbenchImages.declareImage
Summary: [Workbench] NPE in WorkbenchImages.declareImage
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-03-08 17:56 EST by Andrew Eidsness CLA
Modified: 2009-08-30 02:11 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Eidsness CLA 2004-03-08 17:56:54 EST
WorkbenchImages.declareImage does not check for null before accessing the 
imageRegistry member.  This member is lazily initialized in the implementation 
of WorkbenchImages.getImageRegistry.  Before the patch for bug#32147, this 
happened to work because getImageRegistry was called from Workbench.
initializeImages.  When I removed that call, I observed the NPE.

As a work-around for now I've left in the call to #getImageRegistry, even though 
nothing is done with the result.  When this bug is fixed, we should also remove 
the call from Workbench.initializeImages.
Comment 1 Tod Creasey CLA 2006-04-13 16:40:48 EDT
I think this is now obsolete.
Comment 2 Denis Roy CLA 2009-08-30 02:11:43 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.