Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340031

Summary: NPE in org.eclipse.emf.facet.util.core.Logger#log
Product: z_Archived Reporter: Nicolas Bros <nicolas.bros>
Component: EMF-FacetAssignee: Nicolas Bros <nicolas.bros>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: emft.facet-inbox, gdupe
Version: unspecifiedFlags: nicolas.bros: indigo+
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 340048    
Bug Blocks:    

Description Nicolas Bros CLA 2011-03-15 10:32:11 EDT
When the log() method is called with plugin == null, it uses Activator.getDefault(), which is the Plugin instance from org.eclipse.emf.facet.util.core. 

And it causes a NPE because Activator.plugin is not initialized (always null)
Comment 1 Nicolas Bros CLA 2011-03-15 10:52:23 EDT
And even after setting Activator#plugin in the Activator, Plugin#getBundle returns null which causes another NPE.
Comment 2 Nicolas Bros CLA 2011-03-15 11:50:26 EDT
This happens for example when the user does Navigate > Open EPackage (or clicks on the "MoDisco" icon) and selects any EPackage.
Comment 3 Nicolas Bros CLA 2011-03-15 12:30:12 EDT
Fixed in revision 421.
Comment 4 Gregoire Dupe CLA 2011-06-07 10:26:22 EDT
This bug can be closed.