Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369706 - NullPointerException when using org.eclipse.emf.compare.ui.export extension point
Summary: NullPointerException when using org.eclipse.emf.compare.ui.export extension p...
Status: CLOSED FIXED
Alias: None
Product: EMFCompare
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: EMF Compare CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-25 12:00 EST by Stéphane Thibaudeau CLA
Modified: 2012-03-06 10:34 EST (History)
1 user (show)

See Also:


Attachments
Stack trace (71.15 KB, application/octet-stream)
2012-01-25 12:03 EST, Stéphane Thibaudeau CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Thibaudeau CLA 2012-01-25 12:00:45 EST
Build Identifier: 1.1.2.v20110202-0936

I provide my own action with the org.eclipse.emf.compare.ui.export extension point.
Now when I compare 2 models and select the "complete resourceset(s)" option I get a NullPointerException.

The problem is that my models reference another model using a pathmap URI.
This URI has no file extension.
Then EMF Compare picks the file extensions which are both null and tries to compare them using leftExtension.equals(righExtension) =>  NPE

Reproducible: Always

Steps to Reproduce:
Compare models who have no file extension
Comment 1 Stéphane Thibaudeau CLA 2012-01-25 12:03:32 EST
Created attachment 210067 [details]
Stack trace
Comment 2 Laurent Goubet CLA 2012-03-06 10:34:53 EST
Fixed on master