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

Bug 336326

Summary: SWTException when selecting Differencing Engine
Product: [Modeling] EMFCompare Reporter: aurelien.mariage
Component: CoreAssignee: EMF Compare <emf.compare-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: laurent.goubet
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description aurelien.mariage CLA 2011-02-04 05:01:25 EST
Build Identifier: 20100917-0705

A SWTException is raised when I add a new DiffEngine thanks to the plugin extension, that seems to be thrown by VisualEngineSelector.

> org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
	at org.eclipse.swt.SWT.error(SWT.java:4083)
....
Caused by: java.lang.NullPointerException
	at org.eclipse.emf.compare.ui.internal.VisualEngineSelector$EngineDescriptorLabelProvider.getImage(VisualEngineSelector.java:141)
...

In the file plugin.xml contained in the package org.eclipse.emf.compare.diff, the icon filepath references a non existing file(icons/DiffEngine.gif). Thus, when the selector try to get the image, it crashes ...


Reproducible: Always

Steps to Reproduce:
1. Add a new DiffEngine component thanks to org.eclipse.emf.compare.diff.engine extension point
2. Run a comparison > the diff window displays nothing
Comment 1 Laurent Goubet CLA 2011-03-10 04:42:33 EST
Hi,

This is due to us having set the icon as "optional" ... while coding as if it were required. The icon is now really optional :). The fix will be available in 1.2.0M6.