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

Bug 369706

Summary: NullPointerException when using org.eclipse.emf.compare.ui.export extension point
Product: [Modeling] EMFCompare Reporter: Stéphane Thibaudeau <stephane.thibaudeau>
Component: CoreAssignee: EMF Compare <emf.compare-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: laurent.goubet
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Stack trace none

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