Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324417 - [ModelBrowser] error when showing metaclasses with null name
Summary: [ModelBrowser] error when showing metaclasses with null name
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Infrastructure (show other bugs)
Version: 0.8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.9.0 M2   Edit
Assignee: Nicolas Bros CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-03 10:02 EDT by Nicolas Bros CLA
Modified: 2013-04-29 07:55 EDT (History)
4 users (show)

See Also:
nicolas.bros: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Bros CLA 2010-09-03 10:02:41 EDT
Create an Ecore model, add an EClass without a name.
Click "Show Empty Metaclasses".
It results in a NPE:

java.lang.NullPointerException
	at java.lang.String$CaseInsensitiveComparator.compare(Unknown Source)
	at java.lang.String$CaseInsensitiveComparator.compare(Unknown Source)
	at java.lang.String.compareToIgnoreCase(Unknown Source)
	at org.eclipse.gmt.modisco.infra.browser.editors.MetaclassViewer$1.compare(MetaclassViewer.java:733)
	at org.eclipse.jface.viewers.ViewerComparator$1.compare(ViewerComparator.java:187)
	...
Comment 1 Nicolas Bros CLA 2010-09-06 05:30:32 EDT
Fixed in revision 2995.
Comment 2 Hugo Bruneliere CLA 2010-10-05 04:53:06 EDT
Bug fixed.