Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [emft-dev] Bug 258703 [EMF Compare]: NullPointerException when the eobject to compare are not contained in a resource

Hi marcus,

the stack trace you're providing doesn't correspond to the bug you mention : the bug was a failure in the merging process, what you have now is a bug in the matching process. That's a bug I added back in the MatchService when adding the MatchEngineRegistry ... problem with not having enough JUnit tests :-[ . I'll have this one fixed ASAP, can you still raise a bugzilla with your stack trace for the record?

Laurent Goubet
Obeo

Marcus Engelhardt a écrit :
Hi guys,

I get the following NullPointerException when trying to merge models programmatically according to the example shown in the EMF Compare FAQ (http://wiki.eclipse.org/EMF_Compare_FAQ#How_can_I_use_EMF_Compare_programmatically.3F).

Stacktrace:

java.lang.NullPointerException
	at org.eclipse.emf.compare.match.service.MatchService.getBestExtension(MatchService.java:261)
	at org.eclipse.emf.compare.match.service.MatchService.doMatch(MatchService.java:142)
        (...)

This bug was reported a few month ago (see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=258703) and should have been fixed in 0.9.0M4 (see: http://www.eclipse.org/modeling/emft/news/relnotes.php?project=compare&version=0.9.0M4#0.9.0M4).

Although I am using this version (0.9.0.v200812190330), I get this exception.

Does anyone know what I am doing wrong or how to fix this?

Thanks in advance.
Marcus
____________________________________________________________________
Psssst! Schon vom neuen WEB.DE MultiMessenger gehört? Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123

_______________________________________________
emft-dev mailing list
emft-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/emft-dev


begin:vcard
fn:Laurent Goubet
n:Goubet;Laurent
org:<a href="http://www.obeo.fr/";>Obeo</a>
email;internet:laurent.goubet@xxxxxxx
url:http://www.obeo.fr
version:2.1
end:vcard


Back to the top